Mercurial > hg > nginx-vendor-1-0
comparison src/http/modules/ngx_http_rewrite_module.c @ 238:a528ae0fe909 NGINX_0_4_4
nginx 0.4.4
*) Feature: the $scheme variable.
*) Feature: the "expires" directive supports the "max" parameter.
*) Feature: the "include" directive supports the "*" mask.
Thanks to Jonathan Dance.
*) Bugfix: the "return" directive always overrode the "error_page"
response code redirected by the "error_page" directive.
*) Bugfix: a segmentation fault occurred if zero-length body was in PUT
method.
*) Bugfix: the redirect was changed incorrectly if the variables were
used in the "proxy_redirect" directive.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Mon, 02 Oct 2006 00:00:00 +0400 |
parents | 38e7b94d63ac |
children | ff906029dd40 |
comparison
equal
deleted
inserted
replaced
237:302a8e8b4ae7 | 238:a528ae0fe909 |
---|---|
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, |