summaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2006-07-17 08:11:27 +0000
committerRoger Dingledine <arma@torproject.org>2006-07-17 08:11:27 +0000
commitc055a34cdbf13a08ad685f41b018facbae7e2402 (patch)
treeb24bfb63630daeb0fb46575762ded8208f449b4a /src/or
parenta2a89da693edd2738dc0be62746149ff5ed5ad9a (diff)
downloadtor-c055a34cdbf13a08ad685f41b018facbae7e2402.tar.gz
tor-c055a34cdbf13a08ad685f41b018facbae7e2402.zip
huge bugfix: we weren't ever writing an http header when sending
out network statuses! so clients were downloading the whole thing, and then discarding them because they're malformed. svn:r6778
Diffstat (limited to 'src/or')
-rw-r--r--src/or/directory.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/directory.c b/src/or/directory.c
index 52ebf19f23..e8ff16f28d 100644
--- a/src/or/directory.c
+++ b/src/or/directory.c
@@ -1501,6 +1501,9 @@ directory_handle_command_get(connection_t *conn, char *headers,
return 0;
}
// note_request(request_type,dlen);
+ write_http_response_header(conn, -1,
+ deflated?"application/octet_stream":"text/plain",
+ deflated?"deflate":NULL);
conn->fingerprint_stack = dir_fps;
if (! deflated)