diff --git a/src/http/modules/ngx_http_scgi_module.c b/src/http/modules/ngx_http_scgi_module.c index fab3766b6..49cc96d24 100644 --- a/src/http/modules/ngx_http_scgi_module.c +++ b/src/http/modules/ngx_http_scgi_module.c @@ -1018,7 +1018,7 @@ ngx_http_scgi_process_header(ngx_http_request_t *r) done: if (u->headers_in.status_n == NGX_HTTP_SWITCHING_PROTOCOLS - && r->headers_in.upgrade) + && r->headers_in.upgrade) { u->upgrade = 1; } diff --git a/src/http/modules/ngx_http_uwsgi_module.c b/src/http/modules/ngx_http_uwsgi_module.c index f71a4f294..623ee4957 100644 --- a/src/http/modules/ngx_http_uwsgi_module.c +++ b/src/http/modules/ngx_http_uwsgi_module.c @@ -1052,7 +1052,7 @@ ngx_http_uwsgi_process_header(ngx_http_request_t *r) done: if (u->headers_in.status_n == NGX_HTTP_SWITCHING_PROTOCOLS - && r->headers_in.upgrade) + && r->headers_in.upgrade) { u->upgrade = 1; }