mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-05-19 14:21:28 -04:00
[#7525] made Bearer prefix case-insensitive
This commit is contained in:
@@ -232,7 +232,8 @@ func (scenario *ApiScenario) test(t testing.TB) {
|
||||
|
||||
// set scenario headers
|
||||
for k, v := range scenario.Headers {
|
||||
req.Header.Set(k, v)
|
||||
// trim whitespaces for consistency with the net/http request parsing
|
||||
req.Header.Set(k, strings.TrimSpace(v))
|
||||
}
|
||||
|
||||
// execute request
|
||||
|
||||
Reference in New Issue
Block a user