mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-18 16:29:51 +00:00
workaround for spurious pages with empty content type
git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@391 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
parent
c63dccc326
commit
a2827aea6a
1 changed files with 2 additions and 2 deletions
|
@ -137,7 +137,7 @@ public abstract class AbstractHafasProvider implements NetworkProvider
|
||||||
InputStream is = null;
|
InputStream is = null;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
is = ParserUtils.scrapeInputStream(apiUri, wrap(request));
|
is = ParserUtils.scrapeInputStream(apiUri, wrap(request), 3);
|
||||||
|
|
||||||
final List<Location> results = new ArrayList<Location>();
|
final List<Location> results = new ArrayList<Location>();
|
||||||
|
|
||||||
|
@ -252,7 +252,7 @@ public abstract class AbstractHafasProvider implements NetworkProvider
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
is = ParserUtils.scrapeInputStream(apiUri, wrap(request));
|
is = ParserUtils.scrapeInputStream(apiUri, wrap(request), 3);
|
||||||
|
|
||||||
final XmlPullParserFactory factory = XmlPullParserFactory.newInstance(System.getProperty(XmlPullParserFactory.PROPERTY_NAME), null);
|
final XmlPullParserFactory factory = XmlPullParserFactory.newInstance(System.getProperty(XmlPullParserFactory.PROPERTY_NAME), null);
|
||||||
final XmlPullParser pp = factory.newPullParser();
|
final XmlPullParser pp = factory.newPullParser();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue