summaryrefslogtreecommitdiff
path: root/src/or/directory.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2009-01-28 16:06:46 +0000
committerNick Mathewson <nickm@torproject.org>2009-01-28 16:06:46 +0000
commitef001cf85d07039ebacf6dadb4cb81dc58a30620 (patch)
treeb9a365a2f754744aa915bc2b95aa500b8d9f5cda /src/or/directory.c
parent9fdae765e30695fdb7018c4b30932e3e4e28d144 (diff)
downloadtor-ef001cf85d07039ebacf6dadb4cb81dc58a30620.tar.gz
tor-ef001cf85d07039ebacf6dadb4cb81dc58a30620.zip
Actually send the extra_headers content in write_http_response_header_impl. This make X-Descriptor-Now-New get sent. Bugfix on 0.2.0.10-alpha. Spotted by "multiplication".
svn:r18297
Diffstat (limited to 'src/or/directory.c')
-rw-r--r--src/or/directory.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/or/directory.c b/src/or/directory.c
index f72ab41bf6..6fac10dd7d 100644
--- a/src/or/directory.c
+++ b/src/or/directory.c
@@ -2165,8 +2165,10 @@ write_http_response_header_impl(dir_connection_t *conn, ssize_t length,
strlcpy(cp, "Pragma: no-cache\r\n", sizeof(tmp)-(cp-tmp));
cp += strlen(cp);
}
- if (extra_headers)
+ if (extra_headers) {
strlcpy(cp, extra_headers, sizeof(tmp)-(cp-tmp));
+ cp += strlen(cp);
+ }
if (sizeof(tmp)-(cp-tmp) > 3)
memcpy(cp, "\r\n", 3);
else