mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-17 20:09:50 +00:00
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:
parent
86ef970399
commit
d3a5d5867c
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue