Mercurial > hg > nginx-quic
comparison src/http/modules/ngx_http_rewrite_module.c @ 726:7b71936d5299
fix: "return" always overrode "error_page" response code
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 02 Oct 2006 08:37:11 +0000 |
parents | 7e24168b0853 |
children | 9f983de19a1d |
comparison
equal
deleted
inserted
replaced
725:86862ad988da | 726:7b71936d5299 |
---|---|
176 while (*(uintptr_t *) e->ip) { | 176 while (*(uintptr_t *) e->ip) { |
177 code = *(ngx_http_script_code_pt *) e->ip; | 177 code = *(ngx_http_script_code_pt *) e->ip; |
178 code(e); | 178 code(e); |
179 } | 179 } |
180 | 180 |
181 return e->status; | 181 if (r->err_status == 0) { |
182 return e->status; | |
183 } | |
184 | |
185 return r->err_status; | |
182 } | 186 } |
183 | 187 |
184 | 188 |
185 static ngx_int_t | 189 static ngx_int_t |
186 ngx_http_rewrite_var(ngx_http_request_t *r, ngx_http_variable_value_t *v, | 190 ngx_http_rewrite_var(ngx_http_request_t *r, ngx_http_variable_value_t *v, |