From d3a5d5867c894a9ae98f4b0ae7bc18c4956ef8e9 Mon Sep 17 00:00:00 2001 From: "andreas.schildbach" Date: Thu, 19 Aug 2010 23:21:11 +0000 Subject: [PATCH] workaround to disable Vodafone compression git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@91 0924bc21-9374-b0fa-ee44-9ff1593b38f0 --- src/de/schildbach/pte/ParserUtils.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/de/schildbach/pte/ParserUtils.java b/src/de/schildbach/pte/ParserUtils.java index ca78345c..6eb11090 100644 --- a/src/de/schildbach/pte/ParserUtils.java +++ b/src/de/schildbach/pte/ParserUtils.java @@ -65,6 +65,8 @@ public final class ParserUtils connection.setConnectTimeout(SCRAPE_CONNECT_TIMEOUT); connection.setReadTimeout(SCRAPE_READ_TIMEOUT); connection.addRequestProperty("User-Agent", SCRAPE_USER_AGENT); + // workaround to disable Vodafone compression + connection.addRequestProperty("Cache-Control", "no-cache"); if (request != null) {