mirror of
https://github.com/syncthing/syncthing.git
synced 2026-02-05 03:32:24 -05:00
Currently, historically, we look for the `X-API-Key` header to authenticate with an API key. There's nothing wrong with this, but in some scenarios it's easier to produce an `Authorization` header with a `Bearer $token` content, which is nowadays more common. This change adds support for both, so that we will accept an API key either in our custom header or as a bearer token.
4.7 KiB
4.7 KiB