Browse Source

Allow gzipped content in RSS feeds.

pull/11/head
Eric Kok 12 years ago
parent
commit
858738d75e
  1. 4
      android/src/org/ifies/android/sax/RssParser.java

4
android/src/org/ifies/android/sax/RssParser.java

@ -25,6 +25,7 @@ import org.apache.http.params.HttpConnectionParams; @@ -25,6 +25,7 @@ import org.apache.http.params.HttpConnectionParams;
import org.apache.http.params.HttpParams;
import org.transdroid.daemon.DaemonException;
import org.transdroid.daemon.util.FakeSocketFactory;
import org.transdroid.daemon.util.HttpHelper;
import org.xml.sax.Attributes;
import org.xml.sax.SAXException;
import org.xml.sax.helpers.DefaultHandler;
@ -78,6 +79,9 @@ public class RssParser extends DefaultHandler @@ -78,6 +79,9 @@ public class RssParser extends DefaultHandler
HttpConnectionParams.setSoTimeout(httpparams, 5000);
DefaultHttpClient httpclient = new DefaultHttpClient(new ThreadSafeClientConnManager(httpparams, registry), httpparams);
httpclient.addRequestInterceptor(HttpHelper.gzipRequestInterceptor);
httpclient.addResponseInterceptor(HttpHelper.gzipResponseInterceptor);
return httpclient;
}

Loading…
Cancel
Save