[tor-commits] [stem/master] Better handle HTTP response codes when downloading descriptors
atagar at torproject.org
atagar at torproject.org
Sat Jun 23 23:59:48 UTC 2018
commit 0b5110acdd1b61b85bdbafa9889c7cb0c383bcc3
Merge: b122a6fa 35493a8f
Author: Damian Johnson <atagar at torproject.org>
Date: Sat Jun 23 16:50:04 2018 -0700
Better handle HTTP response codes when downloading descriptors
Good point from Dave that we shouldn't be so strict with the HTTP response
codes we accept. In particular...
* We should ignore the reason text (things other than 'OK' is fine).
* Any 2xx response code is ok.
* Add test coverage for these and non-2xx responses.
stem/descriptor/remote.py | 4 ++--
test/unit/descriptor/remote.py | 35 +++++++++++++++++++++++++++++++++--
2 files changed, 35 insertions(+), 4 deletions(-)
More information about the tor-commits
mailing list