Function
isEmptyAuthHeader
(header: CustomHeaders[number])
Source from the content-addressed store, hash-verified
| 502 | let finalHeaders: CustomHeaders = customHeaders || []; |
| 503 | |
| 504 | const isEmptyAuthHeader = (header: CustomHeaders[number]) => |
| 505 | header.name.trim().toLowerCase() === "authorization" && |
| 506 | header.value.trim().toLowerCase() === "bearer"; |
| 507 | |
| 508 | // Check for empty Authorization headers and show validation error |
| 509 | const hasEmptyAuthHeader = finalHeaders.some( |
Tested by
no test coverage detected