Welcome! Log In Create A New Profile

Advanced

Re: NGINX stripping websocket "Upgrade" headers

January 14, 2020 01:20AM
Figured it out!

https://www.reddit.com/r/nginx/comments/eodrjc/nginx_stripping_websocket_upgrade_headers/

fireye quote:
----------------------------------------
Got it figured out, this is a quirk of HTTP/2.0 vs 1.1. Per RFC-2616:

The Upgrade header field is intended to provide a simple mechanism for transition from HTTP/1.1 to some other, incompatible protocol.

It looks like nginx discards the Upgrade header, when presented by a client, if the client communicates via HTTP2.0 already. You can confirm this by using the --http1.1 flag with curl and looking at the headers being transferred.
-----------------------------------------
Subject Author Posted

NGINX stripping websocket "Upgrade" headers

bengalih January 13, 2020 07:08PM

Re: NGINX stripping websocket "Upgrade" headers

bengalih January 14, 2020 01:20AM

Re: NGINX stripping websocket "Upgrade" headers

J.R. January 14, 2020 08:54AM

Re: NGINX stripping websocket "Upgrade" headers

bengalih January 14, 2020 10:10AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 61
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready