MCPcopy Index your code
hub / github.com/masterking32/MasterHttpRelayVPN / sanitizeHeaders

Function sanitizeHeaders

apps_script/cloudflare_worker.js:40–49  ·  view source on GitHub ↗
(h)

Source from the content-addressed store, hash-verified

38}
39
40function sanitizeHeaders(h) {
41 const out = {};
42 if (!h || typeof h !== "object") return out;
43 for (const [k, v] of Object.entries(h)) {
44 if (!k) continue;
45 if (STRIP_HEADERS.has(k.toLowerCase())) continue;
46 out[k] = String(v ?? "");
47 }
48 return out;
49}
50
51export default {
52 async fetch(req) {

Callers 1

fetchFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected