mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 20:33:31 +01:00
Oops. Headers work better when named right.
svn:r6707
This commit is contained in:
parent
369d479c7a
commit
9fce316d1c
@ -1282,7 +1282,7 @@ write_http_response_header(connection_t *conn, ssize_t length,
|
|||||||
}
|
}
|
||||||
if (length >= 0) {
|
if (length >= 0) {
|
||||||
tor_snprintf(cp, sizeof(tmp)-(cp-tmp),
|
tor_snprintf(cp, sizeof(tmp)-(cp-tmp),
|
||||||
"Content-Encoding: %ld\r\n", (long)length);
|
"Content-Length: %ld\r\n", (long)length);
|
||||||
cp += strlen(cp);
|
cp += strlen(cp);
|
||||||
}
|
}
|
||||||
if (sizeof(tmp)-(cp-tmp) > 3)
|
if (sizeof(tmp)-(cp-tmp) > 3)
|
||||||
|
Loading…
Reference in New Issue
Block a user