Closed Kuechlin closed 2 weeks ago
This is causing me an issue in Node as well. After this line runs, request.headers
changes from a Headers object to an Array<[string, string]>
. Any idea why this might be?
Any reason to not use request.clone()
?
Nevermind. My issue was completely unrelated and fixed by MSW: https://github.com/mswjs/interceptors/commit/2f6106c9a96447c08423cef3ae68fde1c9e28b65
This was just fixed in Bun v1.1.27 Does that fix your issue @Kuechlin ?
I'm wondering if something similar in workerd could be causing my issues https://github.com/cloudflare/workers-sdk/issues/3259
Thank you for the info, Bun v1.1.27 fixes the issue.
Describe the bug
The request body is empty in Strategy.authenticate() when using bun as runtime.
In
src/authenticator.ts
a new Request is created but the body is not cloned in bun.It is a know bug in bun issue, but is not getting fixed soon.
A option to disable cloning the request would fix the issue for me.
Your Example Website or App
none
Steps to Reproduce the Bug or Issue
use bun
Expected behavior
A option to disable cloning the request
Screenshots or Videos
No response
Platform
Additional context
to fix the issue for me i have to override the authenticate method without cloning the request