Commit 07271b8f authored by Federico G. Schwindt's avatar Federico G. Schwindt Committed by Pål Hermunn Johansen

Both Upgrade and Connection headers are needed now

Related to #2337 and #2366.
parent 32fceb3b
......@@ -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;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment