[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor/master] Handle x-zstd and x-tor-lzma in parse_http_response().
commit fbef257c43b90bd5d80831808e162c57ce876283
Author: Alexander Færøy <ahf@xxxxxxxxxxxxxx>
Date: Mon May 8 13:52:40 2017 +0200
Handle x-zstd and x-tor-lzma in parse_http_response().
See: https://bugs.torproject.org/21667
---
src/or/directory.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/or/directory.c b/src/or/directory.c
index 83a2e6c..c7c3d38 100644
--- a/src/or/directory.c
+++ b/src/or/directory.c
@@ -2056,6 +2056,10 @@ parse_http_response(const char *headers, int *code, time_t *date,
*compression = ZLIB_METHOD;
} else if (!strcmp(enc, "gzip") || !strcmp(enc, "x-gzip")) {
*compression = GZIP_METHOD;
+ } else if (!strcmp(enc, "x-zstd")) {
+ *compression = ZSTD_METHOD;
+ } else if (!strcmp(enc, "x-tor-lzma")) {
+ *compression = LZMA_METHOD;
} else {
log_info(LD_HTTP, "Unrecognized content encoding: %s. Trying to deal.",
escaped(enc));
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits