fix: missing headers in foreign

This commit is contained in:
orion 2023-10-06 23:56:04 -05:00
parent 7c745f6fd7
commit b59de0f5b5
Signed by: orion
GPG Key ID: 6D4165AE4C928719

View File

@ -24,7 +24,7 @@ export const _failure = r => () => r.failure()
/** /**
* @type {(_1: HTTPRequest) => () => Array<{k: string, v: string}>} * @type {(_1: HTTPRequest) => () => Array<{k: string, v: string}>}
*/ */
export const headers = r => () => { export const _headers = r => () => {
/** @type {Array<{k: string, v: string}>} */ /** @type {Array<{k: string, v: string}>} */
const init = [] const init = []
return Object.entries(r.headers()).reduce( return Object.entries(r.headers()).reduce(