summaryrefslogtreecommitdiffhomepage
path: root/src/http/modules/ngx_http_scgi_module.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/http/modules/ngx_http_scgi_module.c')
-rw-r--r--src/http/modules/ngx_http_scgi_module.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/http/modules/ngx_http_scgi_module.c b/src/http/modules/ngx_http_scgi_module.c
index 9023a36e4..516b393fb 100644
--- a/src/http/modules/ngx_http_scgi_module.c
+++ b/src/http/modules/ngx_http_scgi_module.c
@@ -485,6 +485,10 @@ ngx_http_scgi_handler(ngx_http_request_t *r)
ngx_http_scgi_main_conf_t *smcf;
#endif
+ if (r->method == NGX_HTTP_CONNECT) {
+ return NGX_HTTP_NOT_ALLOWED;
+ }
+
if (ngx_http_upstream_create(r) != NGX_OK) {
return NGX_HTTP_INTERNAL_SERVER_ERROR;
}