comparison src/http/modules/perl/nginx.xs @ 673:b80f94fa2197 release-0.3.58

nginx-0.3.58-RELEASE import *) Feature: the "error_page" directive supports the variables. *) Change: now the procfs interface instead of sysctl is used on Linux. *) Change: now the "Content-Type" header line is inherited from first response when the "X-Accel-Redirect" was used. *) Bugfix: the "error_page" directive did not redirect the 413 error. *) Bugfix: the trailing "?" did not remove old arguments if no new arguments were added to a rewritten URI. *) Bugfix: nginx could not run on 64-bit FreeBSD 7.0-CURRENT.
author Igor Sysoev <igor@sysoev.ru>
date Mon, 14 Aug 2006 15:09:38 +0000
parents 63a820b0bc6c
children 7e24168b0853
comparison
equal deleted inserted replaced
672:9542722efd0d 673:b80f94fa2197
114 { 114 {
115 XSRETURN_EMPTY; 115 XSRETURN_EMPTY;
116 } 116 }
117 117
118 } else { 118 } else {
119 if (r->headers_out.content_type.len == 0) { 119 if (ngx_http_set_content_type(r) != NGX_OK) {
120 if (ngx_http_set_content_type(r) != NGX_OK) { 120 XSRETURN_EMPTY;
121 XSRETURN_EMPTY;
122 }
123 } 121 }
124 } 122 }
125 123
126 (void) ngx_http_send_header(r); 124 (void) ngx_http_send_header(r);
127 125