This repository was archived by the owner on Oct 8, 2025. It is now read-only.
Commit aede3ed
committed
http: Fix WebSockets with Firefox
Firefox (going back a couple of years at least) was unable to open a
WebSocket connection to Unit due to it sending a Connection header of
Connection: keep-alive, Upgrade
However in Unit we were expecting only a single value in the header.
Fix the 'Connection' parsing in nxt_h1p_connection() to address this.
Closes: #772
Signed-off-by: Andrew Clayton <a.clayton@nginx.com>1 parent b4201ab commit aede3ed
1 file changed
+8
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
759 | 759 | | |
760 | 760 | | |
761 | 761 | | |
| 762 | + | |
762 | 763 | | |
763 | 764 | | |
764 | 765 | | |
765 | 766 | | |
766 | 767 | | |
767 | | - | |
768 | | - | |
769 | | - | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
770 | 771 | | |
| 772 | + | |
771 | 773 | | |
772 | | - | |
773 | | - | |
774 | | - | |
| 774 | + | |
775 | 775 | | |
| 776 | + | |
776 | 777 | | |
777 | | - | |
778 | | - | |
779 | | - | |
| 778 | + | |
780 | 779 | | |
781 | 780 | | |
782 | 781 | | |
| |||
0 commit comments