Cloudflare doesn't recognise the request as a WebSocket request if it contains Content-Length: 0

GET / HTTP/1.1
user-agent: Dart/2.10 (dart:io)
connection: Upgrade
cache-control: no-cache
accept-encoding: gzip
content-length: 0
sec-websocket-version: 13
host: my-websoket-url
sec-websocket-extensions: permessage-deflate; client_max_window_bits
sec-websocket-key: zHZsuD/HDiA1BEnfPwAR+Q==
upgrade: websocket

this code doesn’t work, because of the ‘content-type: 0’

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.