Skip to content

Comments

Allow a comma separated upgrade header#142

Closed
jhofstee wants to merge 1 commit intohalfgaar:masterfrom
jhofstee:comma-separated-upgrade-header
Closed

Allow a comma separated upgrade header#142
jhofstee wants to merge 1 commit intohalfgaar:masterfrom
jhofstee:comma-separated-upgrade-header

Conversation

@jhofstee
Copy link
Contributor

@jhofstee jhofstee commented Apr 7, 2025

The upgrade header might be comma separated and FlashMQ shouldn't refuse to upgrade in such a case. This splits and trims the upgrade header first.

In our case the header is actually send by accident. It used to be:

Upgrade: websocket\r\n
Upgrade: websocket\r\n

But newer nginx proxies transform that into:

Upgrade: websocket, websocket\r\n

And hence a websocket connection could no longer be established.

The upgrade header might be comma separated and FlashMQ shouldn't
refuse to upgrade in such a case. This splits and trims the upgrade
header first.

In our case the header is actually send by accident. It used to be:
Upgrade: websocket\r\n
Upgrade: websocket\r\n

But newer nginx proxies transform that into:
Upgrade: websocket, websocket\r\n

And hence a websocket connection could no longer be established.
@jhofstee jhofstee force-pushed the comma-separated-upgrade-header branch from a8217fb to 5c5efe0 Compare April 7, 2025 11:56
@halfgaar
Copy link
Owner

halfgaar commented Apr 7, 2025

Merged.

Github lost track because I edited one letter in your commit message, so closing manually.

@halfgaar halfgaar closed this Apr 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants