* 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
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,
#include "apr.h"
#include "apr_strings.h"
#include "apr_lib.h"
-#include "apr_encode.h"
#include "apr_sha1.h"
#include "apr_strmatch.h"