diff options
author | Roger Dingledine <arma@torproject.org> | 2005-10-17 02:32:33 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2005-10-17 02:32:33 +0000 |
commit | 435fb973c27c95fe254f4ffeb253526ce5c5a922 (patch) | |
tree | fcf6afa3b19b28b8d1bb5ed049ca186b60f12b45 | |
parent | 7b15f77dd68cd0ba231500589a4fe736cfddd641 (diff) | |
download | tor-435fb973c27c95fe254f4ffeb253526ce5c5a922.tar.gz tor-435fb973c27c95fe254f4ffeb253526ce5c5a922.zip |
when providing content-type application/octet-stream for providing
server descriptors with .z, we were leaving out the content-encoding
header. oops. (everything tolerated this just fine, but that doesn't
mean we need to be part of the problem.)
svn:r5258
-rw-r--r-- | src/or/directory.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/directory.c b/src/or/directory.c index 3f367beafe..ffb51d3a9c 100644 --- a/src/or/directory.c +++ b/src/or/directory.c @@ -1360,7 +1360,7 @@ directory_handle_command_get(connection_t *conn, char *headers, return -1; } tor_free(inp); - tor_snprintf(tmp, sizeof(tmp), "HTTP/1.0 200 OK\r\nDate: %s\r\nContent-Length: %d\r\nContent-Type: application/octet-stream\r\n\r\n", + tor_snprintf(tmp, sizeof(tmp), "HTTP/1.0 200 OK\r\nDate: %s\r\nContent-Length: %d\r\nContent-Type: application/octet-stream\r\nContent-Encoding: deflate\r\n\r\n", date, (int)compressed_len); connection_write_to_buf(tmp, strlen(tmp), conn); |