[4.1] 07271b8 Both Upgrade and Connection headers are needed now

PÃ¥l Hermunn Johansen hermunn at varnish-software.com
Tue Aug 8 11:36:06 CEST 2017


commit 07271b8f3532b762ec9c10f588330b1ac58a0a98
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