[or-cvs] huge bugfix: we weren"t ever writing an http header when se...
arma at seul.org
arma at seul.org
Mon Jul 17 08:11:29 UTC 2006
Update of /home2/or/cvsroot/tor/src/or
In directory moria:/home/arma/work/onion/cvs/tor/src/or
Modified Files:
directory.c
Log Message:
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.
Index: directory.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/directory.c,v
retrieving revision 1.392
retrieving revision 1.393
diff -u -p -d -r1.392 -r1.393
--- directory.c 17 Jul 2006 06:35:06 -0000 1.392
+++ directory.c 17 Jul 2006 08:11:27 -0000 1.393
@@ -1501,6 +1501,9 @@ directory_handle_command_get(connection_
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)
More information about the tor-commits
mailing list