detect html

git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@776 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
andreas.schildbach@gmail.com 2011-09-12 16:31:10 +00:00
parent f35d27ad20
commit f26b7cf2a3

View file

@ -2150,6 +2150,9 @@ public abstract class AbstractEfaProvider implements NetworkProvider
if (pp.getEventType() == XmlPullParser.START_DOCUMENT)
pp.next();
if (XmlPullUtil.test(pp, "html"))
throw new IllegalStateException("html");
XmlPullUtil.require(pp, "itdRequest");
final String serverVersion = XmlPullUtil.attr(pp, "version");