Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- httpd-2.4.17/modules/proxy/mod_proxy_wstunnel.c.orig 2015-06-02 06:40:41.000000000 -0700
- +++ httpd-2.4.17/modules/proxy/mod_proxy_wstunnel.c 2015-10-23 00:34:39.000000000 -0700
- @@ -183,7 +183,7 @@
- return rv;
- }
- - buf = apr_pstrdup(p, "Upgrade: WebSocket" CRLF "Connection: Upgrade" CRLF CRLF);
- + buf = apr_pstrdup(p, "Upgrade: jboss-remoting" CRLF "Connection: Upgrade" CRLF CRLF);
- 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);
- @@ -336,9 +336,9 @@
- }
- upgrade = apr_table_get(r->headers_in, "Upgrade");
- - if (!upgrade || strcasecmp(upgrade, "WebSocket") != 0) {
- + if (!upgrade || strcasecmp(upgrade, "jboss-remoting") != 0) {
- ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, APLOGNO(02900)
- - "declining URL %s (not WebSocket)", url);
- + "declining URL %s (not jboss-remoting)", url);
- return DECLINED;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement