New submission from Dave Abrahams <d...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue8732>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to