fixed not setting accept header for certain requests

This commit is contained in:
Andreas Schildbach 2013-01-06 00:14:51 +01:00
parent 6dfe6a2874
commit 8a3045f229

View file

@ -249,6 +249,7 @@ public final class ParserUtils
connection.setConnectTimeout(SCRAPE_CONNECT_TIMEOUT);
connection.setReadTimeout(SCRAPE_READ_TIMEOUT);
connection.addRequestProperty("User-Agent", SCRAPE_USER_AGENT);
connection.addRequestProperty("Accept", SCRAPE_ACCEPT);
connection.addRequestProperty("Accept-Encoding", "gzip");
// workaround to disable Vodafone compression
connection.addRequestProperty("Cache-Control", "no-cache");