summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2006-10-05 15:05:47 +0000
committerIgor Sysoev <igor@sysoev.ru>2006-10-05 15:05:47 +0000
commitdaec217defc5d4c3044886282a587b9fda8f5165 (patch)
treea32921cbfe8dc4bb2db126a93ebc11cc87bc50a2
parent54ed5aaf20b851cd94ec2f1740d92a28182b7c00 (diff)
downloadnginx-daec217defc5d4c3044886282a587b9fda8f5165.tar.gz
nginx-daec217defc5d4c3044886282a587b9fda8f5165.tar.bz2
$r->headers_out("Content-Length", "NNN") did not work
-rw-r--r--src/http/modules/perl/nginx.xs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/http/modules/perl/nginx.xs b/src/http/modules/perl/nginx.xs
index 6e6afed15..d261afa02 100644
--- a/src/http/modules/perl/nginx.xs
+++ b/src/http/modules/perl/nginx.xs
@@ -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;
}