MCPcopy
hub / github.com/di-sukharev/opencommit / throwIfProxyAuthIsSent

Function throwIfProxyAuthIsSent

out/cli.cjs:58031–58036  ·  view source on GitHub ↗
(headers)

Source from the content-addressed store, hash-verified

58029 const headersPair = {};
58030 for (let i3 = 0; i3 < headers.length; i3 += 2) {
58031 headersPair[headers[i3]] = headers[i3 + 1];
58032 }
58033 return headersPair;
58034 }
58035 return headers;
58036 }
58037 function throwIfProxyAuthIsSent(headers) {
58038 const existProxyAuth = headers && Object.keys(headers).find((key) => key.toLowerCase() === "proxy-authorization");
58039 if (existProxyAuth) {

Callers 1

dispatchMethod · 0.85

Calls 2

toLowerCaseMethod · 0.80
keysMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…