workaround to disable Vodafone compression

git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@91 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
andreas.schildbach 2010-08-19 23:21:11 +00:00
parent 86ef970399
commit d3a5d5867c

View file

@ -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)
{