summaryrefslogtreecommitdiff
path: root/src/or/directory.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-06-20 11:48:15 -0400
committerNick Mathewson <nickm@torproject.org>2017-06-20 12:08:11 -0400
commit7b3161f0082a626c721acc1100cce0acb40efa85 (patch)
tree52bf985d8b4f78049c6d1bf33bc63b1cefe69bbb /src/or/directory.c
parent9018da06c783dbc8a6d1e10b0c3ae2790d052981 (diff)
downloadtor-7b3161f0082a626c721acc1100cce0acb40efa85.tar.gz
tor-7b3161f0082a626c721acc1100cce0acb40efa85.zip
It should be a PROTOCOL_WARN when we have an incorrect content-encoding.
Rationale: The server did not obey the protocol, and its content-encoding got munged. That's what PROTOCOL_WARN is for.
Diffstat (limited to 'src/or/directory.c')
-rw-r--r--src/or/directory.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/directory.c b/src/or/directory.c
index 89e4bbc492..1d2f8986aa 100644
--- a/src/or/directory.c
+++ b/src/or/directory.c
@@ -2232,7 +2232,7 @@ dir_client_decompress_response_body(char **bodyp, size_t *bodylenp,
want_to_try_both = (compression == UNKNOWN_METHOD ||
guessed != compression);
if (want_to_try_both) {
- severity = LOG_INFO;
+ severity = LOG_PROTOCOL_WARN;
}
tor_log(severity, LD_HTTP,