diff options
Diffstat (limited to 'src/http/modules/ngx_http_fastcgi_module.c')
| -rw-r--r-- | src/http/modules/ngx_http_fastcgi_module.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/http/modules/ngx_http_fastcgi_module.c b/src/http/modules/ngx_http_fastcgi_module.c index a41b496dc..2f402f37a 100644 --- a/src/http/modules/ngx_http_fastcgi_module.c +++ b/src/http/modules/ngx_http_fastcgi_module.c @@ -688,6 +688,10 @@ ngx_http_fastcgi_handler(ngx_http_request_t *r) ngx_http_fastcgi_main_conf_t *fmcf; #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; } |
