]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
* modules/http2/h2_session.c (h2_session_start):
authorStefan Eissing <icing@apache.org>
Mon, 16 Oct 2023 12:43:44 +0000 (12:43 +0000)
committerStefan Eissing <icing@apache.org>
Mon, 16 Oct 2023 12:43:44 +0000 (12:43 +0000)
 Restrict WebSockets options handling to with-WS builds.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1913020 13f79535-47bb-0310-9956-ffa450edef68

modules/http2/h2_session.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,