We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
export default { async fetch(request, env, ctx) { const r = new Request('https://example.com/', { method: 'POST', body: new URLSearchParams({ hello: 'world' }) }); return new Response(r.headers.get('content-type')) }, };
Expected (ref):
application/x-www-form-urlencoded;charset=UTF-8
Actual:
text/plain;charset=UTF-8
This behavior differs from browsers and node.js
Replicated in cloudflare workers playground and in a production workers deployment.
The text was updated successfully, but these errors were encountered:
It seems that api::url::URLSearchParams instead of api::URLSearchParams should be used in Body::Initializer:
api::url::URLSearchParams
api::URLSearchParams
Body::Initializer
workerd/src/workerd/api/http.h
Line 255 in f32706b
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Expected (ref):
Actual:
This behavior differs from browsers and node.js
Replicated in cloudflare workers playground and in a production workers deployment.
The text was updated successfully, but these errors were encountered: