[tor-bugs] #28239 [Core Tor/Stem]: stem should permit Content-Type text/plain on all directory responses
Tor Bug Tracker & Wiki
blackhole at torproject.org
Tue Oct 30 09:13:20 UTC 2018
#28239: stem should permit Content-Type text/plain on all directory responses
-------------------------------+--------------------
Reporter: teor | Owner: atagar
Type: defect | Status: new
Priority: Medium | Milestone:
Component: Core Tor/Stem | Version:
Severity: Normal | Keywords:
Actual Points: | Parent ID: #28100
Points: | Reviewer:
Sponsor: |
-------------------------------+--------------------
In #28100, we make all directory responses have "Content-Type:
text/plain".
Since older tor versions will still use `Content-Type: application/octet-
stream` for compressed content, stem should allow both options. (There is
no mention of Content-Type in torspec, so we don't need spec changes.)
The relevant lines are:
https://github.com/torproject/stem/blob/master/test/unit/descriptor/remote.py#L76
https://github.com/torproject/stem/blob/master/test/unit/descriptor/remote.py#L284
I am not sure if these checks are actually done on tor. If they are, we'll
need to merge the stem patch before the tor patch, because #27913 just
merged test-stem into CI.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/28239>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list