From: Jim Jagielski Date: Fri, 8 Mar 2013 14:55:53 +0000 (+0000) Subject: don't strip these, ensure that they exist. X-Git-Tag: 2.5.0-alpha~5683 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2cac6515e9d39f762e9a02d93ea537f58be77626;p=apache don't strip these, ensure that they exist. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1454414 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/proxy/mod_proxy_wstunnel.c b/modules/proxy/mod_proxy_wstunnel.c index f784bace62..528530d372 100644 --- a/modules/proxy/mod_proxy_wstunnel.c +++ b/modules/proxy/mod_proxy_wstunnel.c @@ -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)); diff --git a/modules/proxy/mod_proxy_tunnel.dsp b/modules/proxy/mod_proxy_wstunnel.dsp similarity index 100% rename from modules/proxy/mod_proxy_tunnel.dsp rename to modules/proxy/mod_proxy_wstunnel.dsp