aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2005-10-17 02:32:33 +0000
committerRoger Dingledine <arma@torproject.org>2005-10-17 02:32:33 +0000
commit435fb973c27c95fe254f4ffeb253526ce5c5a922 (patch)
treefcf6afa3b19b28b8d1bb5ed049ca186b60f12b45
parent7b15f77dd68cd0ba231500589a4fe736cfddd641 (diff)
downloadtor-435fb973c27c95fe254f4ffeb253526ce5c5a922.tar
tor-435fb973c27c95fe254f4ffeb253526ce5c5a922.tar.gz
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/directory.c b/src/or/directory.c
index 3f367beaf..ffb51d3a9 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);