$r->headers_out("Content-Length", "NNN") did not work

This commit is contained in:
Igor Sysoev 2006-10-05 15:05:47 +00:00
parent 54ed5aaf20
commit daec217def

View 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;
}