mirror of
https://github.com/nginx/nginx.git
synced 2026-10-09 02:02:22 +00:00
$r->headers_out("Content-Length", "NNN") did not work
This commit is contained in:
parent
54ed5aaf20
commit
daec217def
1 changed files with 2 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue