MCPcopy Index your code
hub / github.com/di-sukharev/opencommit / processHeaderValue

Function processHeaderValue

out/cli.cjs:52756–52766  ·  view source on GitHub ↗
(key, val, skipAppend)

Source from the content-addressed store, hash-verified

52754 const [key, value] = header.split(": ");
52755 if (value == null || value.length === 0) continue;
52756 if (headers[key]) headers[key] += `,${value}`;
52757 else headers[key] = value;
52758 }
52759 return headers;
52760 }
52761 };
52762 function processHeaderValue(key, val, skipAppend) {
52763 if (val && typeof val === "object") {
52764 throw new InvalidArgumentError(`invalid ${key} header`);
52765 }
52766 val = val != null ? `${val}` : "";
52767 if (headerCharRegex.exec(val) !== null) {
52768 throw new InvalidArgumentError(`invalid ${key} header`);
52769 }

Callers 1

processHeaderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…