mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-10-24 06:50:25 +02:00
[#7525] made Bearer prefix case-insensitive
This commit is contained in:
1 parent
23ca5a77e1
commit
bc72525013
4 files changed
+29
-5
No files matched your search
+2
-1
@@ -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