Closed GoogleCodeExporter closed 9 years ago
httplib2 used to have the same problem with 'if-match' headers and the way I
solved
that problem was to only add the 'if-match' header if it *wasn't* supplied by
the
client. I can do the same thing for the 'accept-encoding' header and only add
it if
the client hasn't supplied one.
As for the content-encoding header, the original value gets stored in the
"-content-encoding" header (note the leading dash) which is something I added a
while
ago for my own unit testing purposes.
Original comment by joe.gregorio@gmail.com
on 31 May 2008 at 6:10
> I can do the same thing for the 'accept-encoding' header and
> only add it if the client hasn't supplied one.
That's fine, as long as it's also possible to specify no accept-encoding header,
perhaps by passing {'accept-encoding': None}, which would then remove the header
entirely from the request before it was sent.
> As for the content-encoding header, the original value gets
> stored in the "-content-encoding" header (note the leading
> dash) which is something I added a while ago for my own unit
> testing purposes.
That's fine. As long as its documented.
Thanks for a great library.
Original comment by alan.ken...@gmail.com
on 31 May 2008 at 2:06
You can now add you own Accept-Encoding: header whose value will over-ride the
default.
Original comment by joe.gregorio@gmail.com
on 6 Sep 2008 at 5:06
Original issue reported on code.google.com by
alan.ken...@gmail.com
on 27 May 2008 at 10:35