WebSocket from dart:io forces all headers to lowercase #50378
Labels
area-vm
Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends.
library-io
type-enhancement
A request for a change that isn't a bug
When trying to connect with WebSocket.connect(), headers are changed to lowercase. For example, see the below code:
Origin: https://example.com
becomesorigin: https://example.com
I do not have control of the server and thus cannot fix the back end to be case-insensitive.
Perhaps a solution similar to #33501 could be implemented (
{bool preserveHeaderCase: false}
).The text was updated successfully, but these errors were encountered: