Skip to content

Commit

Permalink
fixup! bwauth: check and use compression serving bw file
Browse files Browse the repository at this point in the history
  • Loading branch information
juga0 committed Dec 2, 2018
1 parent be6cc01 commit 41008a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/feature/dircache/dircache.c
Original file line number Diff line number Diff line change
Expand Up @@ -1457,8 +1457,8 @@ handle_get_next_bandwidth(dir_connection_t *conn,
RFTS_IGNORE_MISSING, NULL);
if (bandwidth != NULL) {
size_t len = strlen(bandwidth);
write_http_response_header(conn, len, compress_method,
BANDWIDTH_CACHE_LIFETIME);
write_http_response_header(conn, compress_method != NO_METHOD ? -1 : len,
compress_method, BANDWIDTH_CACHE_LIFETIME);
if (compress_method != NO_METHOD)
conn->compress_state = tor_compress_new(1, compress_method,
choose_compression_level(len));
Expand Down

0 comments on commit 41008a7

Please sign in to comment.