From 6c7b7137a8a839b4cee3ee586a359e4b67823da0 Mon Sep 17 00:00:00 2001 From: Andreas Schildbach Date: Thu, 21 Nov 2013 17:39:53 +0100 Subject: [PATCH] Handle HTTP status 'not available' --- enabler/src/de/schildbach/pte/util/ParserUtils.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/enabler/src/de/schildbach/pte/util/ParserUtils.java b/enabler/src/de/schildbach/pte/util/ParserUtils.java index ce5cfa90..f10d8440 100644 --- a/enabler/src/de/schildbach/pte/util/ParserUtils.java +++ b/enabler/src/de/schildbach/pte/util/ParserUtils.java @@ -194,7 +194,7 @@ public final class ParserUtils } } else if (responseCode == HttpURLConnection.HTTP_FORBIDDEN || responseCode == HttpURLConnection.HTTP_BAD_REQUEST - || responseCode == HttpURLConnection.HTTP_NOT_ACCEPTABLE) + || responseCode == HttpURLConnection.HTTP_NOT_ACCEPTABLE || responseCode == HttpURLConnection.HTTP_UNAVAILABLE) { throw new BlockedException(url); } @@ -353,7 +353,7 @@ public final class ParserUtils } } else if (responseCode == HttpURLConnection.HTTP_FORBIDDEN || responseCode == HttpURLConnection.HTTP_BAD_REQUEST - || responseCode == HttpURLConnection.HTTP_NOT_ACCEPTABLE) + || responseCode == HttpURLConnection.HTTP_NOT_ACCEPTABLE || responseCode == HttpURLConnection.HTTP_UNAVAILABLE) { throw new BlockedException(url); }