mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 06:13:31 +01:00
Restore wget behavior when fetching compressed objects
We do this by treating the presence of .z as meaning ZLIB_METHOD, even if Accept-Encoding does not include deflate. This fixes bug 22206; bug not in any released tor.
This commit is contained in:
parent
5dab99d6a8
commit
8266d193a6
@ -3516,7 +3516,8 @@ directory_handle_command_get,(dir_connection_t *conn, const char *headers,
|
||||
tor_free(header);
|
||||
} else {
|
||||
compression_methods_supported = (1u << NO_METHOD);
|
||||
if (zlib_compressed_in_url)
|
||||
}
|
||||
if (zlib_compressed_in_url) {
|
||||
compression_methods_supported |= (1u << ZLIB_METHOD);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user