ws icon indicating copy to clipboard operation
ws copied to clipboard

reserved fields must be empty error on custom headers in the request

Open jaggukaka opened this issue 10 years ago • 1 comments

I'm getting "reserved fields must be empty" error repeatedly on the 'error' event of ws server when I pass custom headers from the client. The client is a different (java) implementation of websockets.

I even tried to use the verifyClient option on ws server creation. Though verifyClient works well with the 'Origin' header present in the connection request, a few moments later the connection fails with "reserved fields must be empty" error.

I tried setting perMessageDeflate to true/false, disableHixie to true/false, but no luck.

Everything works fine when I remove this custom header or/and 'Origin' header on the client side.

Any thoughts would be appreciated, If this is not a bug and if I'm missing some configuration, please provide the required information.

Thanks

jaggukaka avatar Dec 19 '15 11:12 jaggukaka

@jaggukaka, did you solved this problem?

mhamlet avatar Aug 01 '16 09:08 mhamlet