diff options
Diffstat (limited to 'runtime/js/40_http.js')
-rw-r--r-- | runtime/js/40_http.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/runtime/js/40_http.js b/runtime/js/40_http.js index 4a2dcdf4a..18ead84c3 100644 --- a/runtime/js/40_http.js +++ b/runtime/js/40_http.js @@ -2,7 +2,7 @@ "use strict"; ((window) => { - const { Request, dontValidateUrl, fastBody, Response } = + const { Request, dontValidateUrl, lazyHeaders, fastBody, Response } = window.__bootstrap.fetch; const { Headers } = window.__bootstrap.headers; const errors = window.__bootstrap.errors.errors; @@ -61,8 +61,9 @@ const request = new Request(url, { body, method, - headers: new Headers(headersList), + headers: headersList, [dontValidateUrl]: true, + [lazyHeaders]: true, }); const respondWith = createRespondWith(responseSenderRid, this.#rid); |