View Single Post
Old 08-25-2011, 10:57 AM   #11
KNickerson
Member
KNickerson began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Aug 2011
Device: Nook
Quote:
Originally Posted by kovidgoyal View Post
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?
KNickerson is offline   Reply With Quote