]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Further h2 compile fixes:
authorJoe Orton <jorton@apache.org>
Mon, 16 Oct 2023 12:28:13 +0000 (12:28 +0000)
committerJoe Orton <jorton@apache.org>
Mon, 16 Oct 2023 12:28:13 +0000 (12:28 +0000)
* modules/http2/h2_session.c (h2_session_start):
  Restrict WebSockets options handling to with-WS builds.

* modules/http2/h2_ws.c: Don't include apr_encode.h (not used).

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1913019 13f79535-47bb-0310-9956-ffa450edef68

modules/http2/h2_session.c
modules/http2/h2_ws.c

index 3e1d2b9164651176db64f9bd80363c021fadc8c5..1e560e4779275d2ee5474c7338eb5458a91f3659 100644 (file)
@@ -1085,11 +1085,13 @@ static apr_status_t h2_session_start(h2_session *session, int *rv)
         settings[slen].value = win_size;
         ++slen;
     }
+#if H2_USE_WEBSOCKETS
     if (h2_config_sgeti(session->s, H2_CONF_WEBSOCKETS)) {
       settings[slen].settings_id = NGHTTP2_SETTINGS_ENABLE_CONNECT_PROTOCOL;
       settings[slen].value = 1;
       ++slen;
     }
+#endif
 
     ap_log_cerror(APLOG_MARK, APLOG_DEBUG, status, session->c1,
                   H2_SSSN_LOG(APLOGNO(03201), session, 
index 51f80a8ee144b473eb2294e35dfbabc40ccd5350..79d5388074d2343af950e4f89de8315f2324ce86 100644 (file)
@@ -19,7 +19,6 @@
 #include "apr.h"
 #include "apr_strings.h"
 #include "apr_lib.h"
-#include "apr_encode.h"
 #include "apr_sha1.h"
 #include "apr_strmatch.h"