(obj)
| 573 | } |
| 574 | |
| 575 | function 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 | |
| 581 | async function safeJson(res) { |
| 582 | const ct = res.headers.get('content-type') || ''; |
no test coverage detected