(headers)
| 9108 | } |
| 9109 | }; |
| 9110 | function buildHeaders(headers) { |
| 9111 | if (Array.isArray(headers)) { |
| 9112 | const headersPair = {}; |
| 9113 | for (let i = 0; i < headers.length; i += 2) { |
| 9114 | headersPair[headers[i]] = headers[i + 1]; |
| 9115 | } |
| 9116 | return headersPair; |
| 9117 | } |
| 9118 | return headers; |
| 9119 | } |
| 9120 | function throwIfProxyAuthIsSent(headers) { |
| 9121 | const existProxyAuth = headers && Object.keys(headers).find((key) => key.toLowerCase() === "proxy-authorization"); |
| 9122 | if (existProxyAuth) { |