[issue8732] Should urrllib2.urlopen send an Accept-Encoding header?
Dave Abrahams
report at bugs.python.org
Sun May 16 16:47:11 CEST 2010
New submission from Dave Abrahams <dave at boostpro.com>:
According to the RFC, the server is allowed to send back any encoding it likes when no Accept-Encoding header is supplied, but all the examples I can find of urllib2.urlopen usage assume they're getting plain text back. I think it would be better to inject an Accept-Encoding header when none is explicitly supplied so that nobody else trips over this issue.
See http://support.github.com/discussions/site/1510
----------
components: Library (Lib)
messages: 105870
nosy: dabrahams
priority: normal
severity: normal
status: open
title: Should urrllib2.urlopen send an Accept-Encoding header?
versions: Python 2.6
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8732>
_______________________________________
More information about the Python-bugs-list
mailing list