now handle gzip encoded http responses
This commit is contained in:
parent
d66ed11224
commit
2d56cb8257
1 changed files with 3 additions and 0 deletions
|
@ -645,6 +645,7 @@ class FeedTree(Gtk.TreeView):
|
||||||
self.show()
|
self.show()
|
||||||
|
|
||||||
self.session = Soup.SessionAsync.new()
|
self.session = Soup.SessionAsync.new()
|
||||||
|
self.session.add_feature(Soup.ContentDecoder())
|
||||||
|
|
||||||
def mark_read_all(self):
|
def mark_read_all(self):
|
||||||
it = self.model.get_iter_first()
|
it = self.model.get_iter_first()
|
||||||
|
@ -1133,8 +1134,10 @@ class FeedReaderWindow(Gtk.Window):
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
jar = Soup.CookieJarText.new("cookies.txt", False)
|
jar = Soup.CookieJarText.new("cookies.txt", False)
|
||||||
|
cd = Soup.ContentDecoder()
|
||||||
session = WebKit.get_default_session()
|
session = WebKit.get_default_session()
|
||||||
session.add_feature(jar)
|
session.add_feature(jar)
|
||||||
|
session.add_feature(cd)
|
||||||
session.set_property("timeout", 60)
|
session.set_property("timeout", 60)
|
||||||
feedreader = FeedReaderWindow()
|
feedreader = FeedReaderWindow()
|
||||||
Gtk.main()
|
Gtk.main()
|
||||||
|
|
Loading…
Reference in a new issue