Mercurial > hg > nginx-vendor-current
comparison src/http/ngx_http_special_response.c @ 614:bb20316269e4 NGINX_0_9_5
nginx 0.9.5
*) Change: now nginx uses a default listen backlog value -1 on
Linux.
Thanks to Andrei Nigmatulin.
*) Feature: the "utf8" parameter of "geoip_country" and "geoip_city"
directives.
Thanks to Denis F. Latypoff.
*) Bugfix: in a default "proxy_redirect" directive if "proxy_pass"
directive has no URI part.
Thanks to Maxim Dounin.
*) Bugfix: an "error_page" directive did not work with nonstandard
error codes; the bug had appeared in 0.8.53.
Thanks to Maxim Dounin.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Mon, 21 Feb 2011 00:00:00 +0300 |
parents | ce857f6b74a7 |
children | d3cf6c6b0043 |
comparison
equal
deleted
inserted
replaced
613:eaf85af608b8 | 614:bb20316269e4 |
---|---|
568 | 568 |
569 if (location == NULL) { | 569 if (location == NULL) { |
570 return NGX_ERROR; | 570 return NGX_ERROR; |
571 } | 571 } |
572 | 572 |
573 r->err_status = overwrite > 0 ? overwrite : NGX_HTTP_MOVED_TEMPORARILY; | 573 if (overwrite >= NGX_HTTP_MOVED_PERMANENTLY |
574 && overwrite <= NGX_HTTP_SEE_OTHER) | |
575 { | |
576 r->err_status = overwrite; | |
577 | |
578 } else { | |
579 r->err_status = NGX_HTTP_MOVED_TEMPORARILY; | |
580 } | |
574 | 581 |
575 location->hash = 1; | 582 location->hash = 1; |
576 ngx_str_set(&location->key, "Location"); | 583 ngx_str_set(&location->key, "Location"); |
577 location->value = uri; | 584 location->value = uri; |
578 | 585 |