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
This commit is contained in:
Roger Dingledine
2005-10-17 02:32:33 +00:00
parent 7b15f77dd6
commit 435fb973c2
+1 -1
View File
@@ -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);