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

Function exportNodeCompatibleHeaders

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

Source from the content-addressed store, hash-verified

6667 configurable: true
6668 });
6669 function exportNodeCompatibleHeaders(headers) {
6670 const obj = Object.assign({ __proto__: null }, headers[MAP]);
6671 const hostHeaderKey = find(headers[MAP], "Host");
6672 if (hostHeaderKey !== void 0) {
6673 obj[hostHeaderKey] = obj[hostHeaderKey][0];
6674 }
6675 return obj;
6676 }
6677 function createHeadersLenient(obj) {
6678 const headers = new Headers6();
6679 for (const name of Object.keys(obj)) {

Callers 1

getNodeRequestOptionsFunction · 0.85

Calls 1

findFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…