Ticket #285: satisfy_any_unauth_forbidden.patch
| File satisfy_any_unauth_forbidden.patch, 597 bytes (added by , 14 years ago) |
|---|
-
src/http/ngx_http_core_module.c
old new 1141 1141 } 1142 1142 1143 1143 if (rc == NGX_HTTP_FORBIDDEN || rc == NGX_HTTP_UNAUTHORIZED) { 1144 r->access_code = rc; 1144 1145 /* do not overwrite unauth with forbidden when satisfy any is set */ 1146 if (clcf->satisfy == NGX_HTTP_SATISFY_ALL || r->access_code != NGX_HTTP_UNAUTHORIZED) { 1147 r->access_code = rc; 1148 } 1145 1149 1146 1150 r->phase_handler++; 1147 1151 return NGX_AGAIN;
