MCPcopy Create free account
hub / github.com/error311/FileRise / toFormBody

Function toFormBody

public/js/auth.js:575–579  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

573}
574
575function toFormBody(obj) {
576 const p = new URLSearchParams();
577 for (const [k, v] of Object.entries(obj || {})) p.set(k, v == null ? '' : String(v));
578 return p.toString();
579}
580
581async function safeJson(res) {
582 const ct = res.headers.get('content-type') || '';

Callers 2

retryWithFreshCsrfFunction · 0.85
submitLoginFunction · 0.85

Calls 1

setMethod · 0.80

Tested by

no test coverage detected