1
0
mirror of https://github.com/pocketbase/pocketbase.git synced 2025-11-24 15:14:30 +02:00

added note and tests regarding the shared batch Authorization header

This commit is contained in:
Gani Georgiev
2024-11-23 11:54:25 +02:00
parent 68e9c55925
commit c3b347af4b
31 changed files with 61 additions and 55 deletions

View File

@@ -338,6 +338,12 @@ func processInternalRequest(
// apply batch request specific headers
// ---
for k, v := range ir.Headers {
// individual Authorization header keys don't have affect
// because the auth state is populated from the base event
if strings.EqualFold(k, "authorization") {
continue
}
r.Header.Set(k, v)
}
r.Header.Set("Content-Type", mw.FormDataContentType())