From 435fb973c27c95fe254f4ffeb253526ce5c5a922 Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Mon, 17 Oct 2005 02:32:33 +0000 Subject: [PATCH] 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 --- src/or/directory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);