comparison src/http/modules/perl/nginx.xs @ 242:ff906029dd40 NGINX_0_4_6

nginx 0.4.6 *) Bugfix: nginx did not run on 64-bit platforms except amd64, sparc64, and ppc64. *) Bugfix: nginx sent the chunked response for HTTP/1.1 request, if its length was set by text string in the $r->headers_out("Content-Length", ...) method. *) Bugfix: after redirecting error by an "error_page" directive any ngx_http_rewrite_module directive returned this error code; bug appeared in 0.4.4.
author Igor Sysoev <http://sysoev.ru>
date Fri, 06 Oct 2006 00:00:00 +0400
parents 38e7b94d63ac
children acd2ec3541cb
comparison
equal deleted inserted replaced
241:c3cf292cce38 242:ff906029dd40
437 XSRETURN_EMPTY; 437 XSRETURN_EMPTY;
438 } 438 }
439 439
440 if (header->key.len == sizeof("Content-Length") - 1 440 if (header->key.len == sizeof("Content-Length") - 1
441 && ngx_strncasecmp(header->key.data, "Content-Length", 441 && ngx_strncasecmp(header->key.data, "Content-Length",
442 sizeof("Content-Length") - 1) == 0 442 sizeof("Content-Length") - 1) == 0)
443 && SvIOK(value))
444 { 443 {
445 r->headers_out.content_length_n = (ssize_t) SvIV(value);; 444 r->headers_out.content_length_n = (off_t) SvIV(value);
446 r->headers_out.content_length = header; 445 r->headers_out.content_length = header;
447 } 446 }
448 447
449 XSRETURN_EMPTY; 448 XSRETURN_EMPTY;
450 449