diff options
author | Roger Dingledine <arma@torproject.org> | 2006-07-17 08:11:27 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2006-07-17 08:11:27 +0000 |
commit | e1f2a318c8d3b43070e88c9e63ec01c9908da6b0 (patch) | |
tree | fc4fc77c2ab98c584945664b78645885233536a4 | |
parent | 77f57c1cacd27dd80b40d654b7a5799462d36908 (diff) | |
download | tor-e1f2a318c8d3b43070e88c9e63ec01c9908da6b0.tar.gz tor-e1f2a318c8d3b43070e88c9e63ec01c9908da6b0.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
-rw-r--r-- | trunk/src/or/directory.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/trunk/src/or/directory.c b/trunk/src/or/directory.c index 52ebf19f23..e8ff16f28d 100644 --- a/trunk/src/or/directory.c +++ b/trunk/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) |