-
Notifications
You must be signed in to change notification settings - Fork 509
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(cloudflare): pass raw body instead of parsing it #629
Conversation
Hi @brendonmatos. Thanks for PR. Would you please provide a reproduction or a better example? We might fix the |
In my case the The To support blobs and formdata an option can be to pass the buffer forward using cloudflare's body = Buffer.from(await event.request.arrayBuffer()) @pi0 What do you think about this? |
Seems a good idea! |
thanks for the path you gave me! |
Can we pass CF records too? https://developers.cloudflare.com/workers/runtime-apis/request/#incomingrequestcfproperties |
Thanks! |
Another enhancement, but sure we shall pass them to |
π Linked issue
β Type of change
π Description
In cases where it is necessary to read the body of the raw request, the cloudflare deploy was always parsing the body even using
useRawBody
.Implementations like the stripe's webhook that needs to read the raw body would break.
π Checklist