]> git.kaiwu.me - nginx.git/commitdiff
$r->headers_out("Content-Length", "NNN") did not work
authorIgor Sysoev <igor@sysoev.ru>
Thu, 5 Oct 2006 15:05:47 +0000 (15:05 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Thu, 5 Oct 2006 15:05:47 +0000 (15:05 +0000)
src/http/modules/perl/nginx.xs

index 6e6afed15d8275302048ebb540d85d73a895f850..d261afa02b1250e729c6f093c3b597a70537f9e2 100644 (file)
@@ -439,10 +439,9 @@ header_out(r, key, value)
 
     if (header->key.len == sizeof("Content-Length") - 1
         && ngx_strncasecmp(header->key.data, "Content-Length",
-                           sizeof("Content-Length") - 1) == 0
-        && SvIOK(value))
+                           sizeof("Content-Length") - 1) == 0)
     {
-        r->headers_out.content_length_n = (ssize_t) SvIV(value);;
+        r->headers_out.content_length_n = (off_t) SvIV(value);
         r->headers_out.content_length = header;
     }