Advertisement
Guest User

mod_proxy_wstunnel.c

a guest
Feb 24th, 2016
453
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.03 KB | None | 0 0
  1. --- httpd-2.4.17/modules/proxy/mod_proxy_wstunnel.c.orig    2015-06-02 06:40:41.000000000 -0700
  2. +++ httpd-2.4.17/modules/proxy/mod_proxy_wstunnel.c 2015-10-23 00:34:39.000000000 -0700
  3. @@ -183,7 +183,7 @@
  4.          return rv;
  5.      }
  6.  
  7. -    buf = apr_pstrdup(p, "Upgrade: WebSocket" CRLF "Connection: Upgrade" CRLF CRLF);
  8. +    buf = apr_pstrdup(p, "Upgrade: jboss-remoting" CRLF "Connection: Upgrade" CRLF CRLF);
  9.      ap_xlate_proto_to_ascii(buf, strlen(buf));
  10.      e = apr_bucket_pool_create(buf, strlen(buf), p, c->bucket_alloc);
  11.      APR_BRIGADE_INSERT_TAIL(header_brigade, e);
  12. @@ -336,9 +336,9 @@
  13.      }
  14.  
  15.      upgrade = apr_table_get(r->headers_in, "Upgrade");
  16. -    if (!upgrade || strcasecmp(upgrade, "WebSocket") != 0) {
  17. +    if (!upgrade || strcasecmp(upgrade, "jboss-remoting") != 0) {
  18.          ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, APLOGNO(02900)
  19. -                      "declining URL %s  (not WebSocket)", url);
  20. +                      "declining URL %s  (not jboss-remoting)", url);
  21.          return DECLINED;
  22.      }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement