]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Fix missing break in config settings, code style
authorStefan Eissing <icing@apache.org>
Mon, 28 Aug 2023 08:33:22 +0000 (08:33 +0000)
committerStefan Eissing <icing@apache.org>
Mon, 28 Aug 2023 08:33:22 +0000 (08:33 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1911961 13f79535-47bb-0310-9956-ffa450edef68

modules/http2/h2_c2.c
modules/http2/h2_config.c

index 3c3c0f5a9f02bf7180a557820ea493916ba58f41..13567eb4f79da5346d7e9d169ef4277acb4d1e69 100644 (file)
@@ -723,7 +723,7 @@ static apr_status_t c2_process(h2_conn_ctx_t *conn_ctx, conn_rec *c)
     apr_time_t timeout;
     apr_status_t rv = APR_SUCCESS;
 
-    if(req->protocol && !strcmp("websocket", req->protocol)) {
+    if (req->protocol && !strcmp("websocket", req->protocol)) {
         req = h2_ws_rewrite_request(req, c, conn_ctx->beam_in == NULL);
         if (!req) {
             rv = APR_EGENERAL;
index e87b1c82a4aae44fca90e4d1fd608e6b9e98a6b4..22653d45d57f01348e80e303d181f1c1ecb534e1 100644 (file)
@@ -377,6 +377,7 @@ static void h2_srv_config_seti(h2_config *conf, h2_config_var_t var, int val)
             break;
         case H2_CONF_PROXY_REQUESTS:
             H2_CONFIG_SET(conf, proxy_requests, val);
+            break;
         case H2_CONF_WEBSOCKETS:
             H2_CONFIG_SET(conf, h2_websockets, val);
             break;