comparison 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
comparison
equal deleted inserted replaced
3:666c7bf3e009 4:35f0ee7a3c28
157 != NGX_OK) 157 != NGX_OK)
158 { 158 {
159 return NGX_ERROR; 159 return NGX_ERROR;
160 } 160 }
161 161
162 sr->discard_body = 1;
162 sr->header_only = 1; 163 sr->header_only = 1;
163 164
164 ctx->subrequest = sr; 165 ctx->subrequest = sr;
165 166
166 ngx_http_set_ctx(r, ctx, ngx_http_auth_request_module); 167 ngx_http_set_ctx(r, ctx, ngx_http_auth_request_module);