(headers)
| 11366 | } |
| 11367 | __name(buildHeaders, "buildHeaders"); |
| 11368 | function throwIfProxyAuthIsSent(headers) { |
| 11369 | for (const key in headers) { |
| 11370 | if (isProxyAuthorizationHeader(key)) { |
| 11371 | throwProxyAuthError(); |
| 11372 | } |
| 11373 | } |
| 11374 | } |
| 11375 | __name(throwIfProxyAuthIsSent, "throwIfProxyAuthIsSent"); |
| 11376 | function isProxyAuthorizationHeader(key) { |
| 11377 | return key.length === proxyAuthorization.length && key.toLowerCase() === proxyAuthorization; |
no test coverage detected