[master] 3457ded Both Upgrade and Connection headers are needed now

Federico G. Schwindt fgsch at lodoss.net
Fri Jul 21 12:20:06 CEST 2017


commit 3457dedc45a08a925fea05dc20850882c7049ab1
Author: Federico G. Schwindt <fgsch at lodoss.net>
Date:   Fri Jul 21 11:18:21 2017 +0100

    Both Upgrade and Connection headers are needed now
    
    Related to #2337 and #2366.

diff --git a/doc/sphinx/users-guide/vcl-example-websockets.rst b/doc/sphinx/users-guide/vcl-example-websockets.rst
index 9401b37..f4aed70 100644
--- a/doc/sphinx/users-guide/vcl-example-websockets.rst
+++ b/doc/sphinx/users-guide/vcl-example-websockets.rst
@@ -6,7 +6,7 @@ WebSockets is a technology for creating a bidirectional stream-based
 channel over HTTP.
 
 To run WebSockets through Varnish you need to pipe the request and copy
-the Upgrade header as follows::
+the Upgrade and Connection headers as follows::
 
     sub vcl_recv {
         if (req.http.upgrade ~ "(?i)websocket") {
@@ -17,5 +17,6 @@ the Upgrade header as follows::
     sub vcl_pipe {
         if (req.http.upgrade) {
             set bereq.http.upgrade = req.http.upgrade;
+            set bereq.http.connection = req.http.connection;
         }
     }



More information about the varnish-commit mailing list