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