Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Маааленькая неточност ь в ответах
nginx при редиректе с 302-м кодом говорит Moved Temporary, а это
поведение по rfc http 1.0, для 1.1 должно говорить Found.
На случай если проблему сочтут достаточно серьёзной :) патч в аттаче.
diff -uNr nginx-0.7.61/src/http/modules/ngx_http_fastcgi_module.c
nginx-0.7.61.fixed/src/http/modules/ngx_http_fastcgi_module.c
--- nginx-0.7.61/src/http/modules/ngx_http_fastcgi_module.c 2009-06-15
12:30:59.000000000 +0300
+++ nginx-0.7.61.fixed/src/http/modules/ngx_http_fastcgi_module.c
2009-08-11 12:59:03.000000000 +0300
@@ -1381,9 +1381,9 @@
} else if (u->headers_in.location) {
u->headers_in.status_n = 302;
u->headers_in.status_line.len =
- sizeof("302 Moved Temporarily") - 1;
+ sizeof("302 Found") - 1;
u->headers_in.status_line.data =
- (u_char *) "302 Moved Temporarily";
+ (u_char *) "302 Found";
} else {
u->headers_in.status_n = 200;
diff -uNr nginx-0.7.61/src/http/ngx_http_header_filter_module.c
nginx-0.7.61.fixed/src/http/ngx_http_header_filter_module.c
--- nginx-0.7.61/src/http/ngx_http_header_filter_module.c 2009-08-11
12:57:35.000000000 +0300
+++ nginx-0.7.61.fixed/src/http/ngx_http_header_filter_module.c 2009-08-11
12:58:28.000000000 +0300
@@ -67,7 +67,7 @@
/* ngx_null_string, */ /* "300 Multiple Choices" */
ngx_string("301 Moved Permanently"),
- ngx_string("302 Moved Temporarily"),
+ ngx_string("302 Found"),
ngx_null_string, /* "303 See Other" */
ngx_string("304 Not Modified"),
|