diff ngx_http_auth_request_module.c @ 4:35f0ee7a3c28

Auth request: fix SIGSEGV on POST.
author Maxim Dounin <mdounin@mdounin.ru>
date Fri, 05 Mar 2010 21:04:17 +0300
parents dfc5ae42367a
children fb05a061532c
line wrap: on
line diff
--- a/ngx_http_auth_request_module.c
+++ b/ngx_http_auth_request_module.c
@@ -159,6 +159,7 @@ ngx_http_auth_request_handler(ngx_http_r
         return NGX_ERROR;
     }
 
+    sr->discard_body = 1;
     sr->header_only = 1;
 
     ctx->subrequest = sr;