MCPcopy Create free account
hub / github.com/smallfawn/QLScriptPublic / cookieHeader

Function cookieHeader

wxapp/wps.js:95–100  ·  view source on GitHub ↗
(cookies = {})

Source from the content-addressed store, hash-verified

93}
94
95function cookieHeader(cookies = {}) {
96 return Object.entries(cookies)
97 .filter(([, v]) => v !== undefined && v !== null && String(v) !== "")
98 .map(([k, v]) => `${k}=${v}`)
99 .join(";");
100}
101
102function mergeSetCookie(setCookie = [], current = {}) {
103 const cookies = { ...current };

Callers 3

accountRequestFunction · 0.85
wpsRequestFunction · 0.85
saveCacheMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected