Both fetch and XMLHttpRequest are adding an unwanted header
transfer-encoding: chunked to any request with the method
PUT on Windows only, macOS is fine.
Steps to reproduce
- make a
fetchrequest with method
transfer-encoding header should be set, as the
content-length is known
transfer-encoding: chunked header is set.
On MacOS, no
You can use https://webhook.site as an endpoint to test what headers the
PUT request is sent with.
If it matters, I’m testing on the prerelease 126.96.36.199
It’s not possible to use fetch
transfer-encoding is considered
unsafe, so you are forbidden from setting it manually