From 8a3045f229550fe25bdfd02fb66ba4fe24225930 Mon Sep 17 00:00:00 2001 From: Andreas Schildbach Date: Sun, 6 Jan 2013 00:14:51 +0100 Subject: [PATCH] fixed not setting accept header for certain requests --- enabler/src/de/schildbach/pte/util/ParserUtils.java | 1 + 1 file changed, 1 insertion(+) diff --git a/enabler/src/de/schildbach/pte/util/ParserUtils.java b/enabler/src/de/schildbach/pte/util/ParserUtils.java index 186696a3..7e12b678 100644 --- a/enabler/src/de/schildbach/pte/util/ParserUtils.java +++ b/enabler/src/de/schildbach/pte/util/ParserUtils.java @@ -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");