]> granicus.if.org Git - apache/commitdiff
don't strip these, ensure that they exist.
authorJim Jagielski <jim@apache.org>
Fri, 8 Mar 2013 14:55:53 +0000 (14:55 +0000)
committerJim Jagielski <jim@apache.org>
Fri, 8 Mar 2013 14:55:53 +0000 (14:55 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1454414 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/mod_proxy_wstunnel.c
modules/proxy/mod_proxy_wstunnel.dsp [moved from modules/proxy/mod_proxy_tunnel.dsp with 100% similarity]

index f784bace62097358f39258b05ea0c51085526edf..528530d372ac63ab53369a5dd4eb19ce4dbd7774 100644 (file)
@@ -175,6 +175,16 @@ static int ap_proxy_wstunnel_request(apr_pool_t *p, request_rec *r,
     if (rv != OK) {
         return rv;
     }
+    buf = apr_pstrcat(p, "Upgrade: ", "WebSocket", CRLF, NULL);
+    ap_xlate_proto_to_ascii(buf, strlen(buf));
+    e = apr_bucket_pool_create(buf, strlen(buf), p, c->bucket_alloc);
+    APR_BRIGADE_INSERT_TAIL(header_brigade, e);
+
+    buf = apr_pstrcat(p, "Connection: ", "Upgrade", CRLF, NULL);
+    ap_xlate_proto_to_ascii(buf, strlen(buf));
+    e = apr_bucket_pool_create(buf, strlen(buf), p, c->bucket_alloc);
+    APR_BRIGADE_INSERT_TAIL(header_brigade, e);
+
     buf = CRLF;
     blen = strlen(buf);
     ap_xlate_proto_to_ascii(buf, strlen(buf));