Quote:
Originally Posted by kovidgoyal
A server should never send gzip if the client doesn;t say it accepts it. But you can add gzip support to a particular recipe by adding:
Code:
def get_browser(self):
br = BasicNewsRecipe.get_browser(self)
br.set_handle_gzip(True)
return br
|
That looks good. I added it in, and got a perfect epub output. Granted, given the variation it might be just luck, but I'm hopeful.
Given that gzip is possible, is there any reason to not decode gzip even if it wasn't requested?