Ticket #559: ngx_http_auth_request_module.c.patch
| File ngx_http_auth_request_module.c.patch, 784 bytes (added by , 12 years ago) |
|---|
-
ngx_http_auth_request_module.c
old new 138 138 return ctx->status; 139 139 } 140 140 141 /* case redirect */ 142 if (ctx->status == NGX_HTTP_MOVED_TEMPORARILY) { 143 sr = ctx->subrequest; 144 h = sr->headers_out.location; 145 if (h) { 146 ho = ngx_list_push(&r->headers_out.headers); 147 if (ho == NULL) { 148 return NGX_ERROR; 149 } 150 151 *ho = *h; 152 r->headers_out.location = ho; 153 } 154 return ctx->status; 155 } 156 141 157 if (ctx->status == NGX_HTTP_UNAUTHORIZED) { 142 158 sr = ctx->subrequest;
