Opened 2 years ago

Last modified 2 years ago

#25676 new defect

When a client asks for a gzip-encoded consensus, the server sends zlib

Reported by: teor Owned by:
Priority: Low Milestone: Tor: unspecified
Component: Core Tor/Tor Version: Tor:
Severity: Minor Keywords: tor-compression, tor-dir
Cc: ahf Actual Points:
Parent ID: Points: 0.5
Reviewer: Sponsor:

Description (last modified by teor)

$ curl -s -O --header "Accept-Encoding: gzip" && file consensus
Accept-Encoding: gzip
Requested: status-vote/current/consensus
consensus: zlib compressed data

But when the client asks for gzip-encoded descriptors, the server sends gzip:

Accept-Encoding: gzip
Requested: server/authority
authority: gzip compressed data, max compression, from Unix

See for a full list of requested encodings, documents, and served formats.

I think this is a minor bug with no impact, because tor clients will decompress the zlib anyway. (I don't know if tor clients ever ask for gzip without zlib.)

But I'd like someone who knows the compression code better to confirm.

Child Tickets

Change History (3)

comment:1 Changed 2 years ago by teor

Description: modified (diff)

Edit description: remove extra output lines

comment:2 Changed 2 years ago by arma

Cc: ahf added

adding ahf as the "someone who knows the compression code"

comment:3 Changed 2 years ago by teor

Priority: MediumLow
Severity: NormalMinor

nickm said on tor-dev that this is a minor issue.

Note: See TracTickets for help on using tickets.