websocket-scala-client icon indicating copy to clipboard operation
websocket-scala-client copied to clipboard

Duplicate custom headers

Open FlorianCassayre opened this issue 7 years ago • 0 comments

A quick inspection in Wireshark revealed that the custom headers appeared twice in the request.

This sample code

val client = WebsocketClient(uri, protocolHandler, Map("test" -> "value"))
val ws = client.open()

produces the following request

GET / HTTP/1.1
upgrade: websocket
connection: upgrade
sec-websocket-key: [...]
host: [...]
sec-websocket-origin: [...]
sec-websocket-version: 13
test: value
test: value

FlorianCassayre avatar Feb 12 '18 10:02 FlorianCassayre