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

Function sanitizeHeaders

apps_script/deno_deploy.ts:39–48  ·  view source on GitHub ↗
(h: unknown)

Source from the content-addressed store, hash-verified

37}
38
39function sanitizeHeaders(h: unknown): Record<string, string> {
40 const out: Record<string, string> = {};
41 if (!h || typeof h !== "object") return out;
42 for (const [k, v] of Object.entries(h as Record<string, unknown>)) {
43 if (!k) continue;
44 if (STRIP_HEADERS.has(k.toLowerCase())) continue;
45 out[k] = String(v ?? "");
46 }
47 return out;
48}
49
50Deno.serve(async (req: Request): Promise<Response> => {
51 try {

Callers 1

deno_deploy.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected