diff options
Diffstat (limited to 'main/src/cgeo/geocaching/network')
-rw-r--r-- | main/src/cgeo/geocaching/network/Network.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/cgeo/geocaching/network/Network.java b/main/src/cgeo/geocaching/network/Network.java index e9e512f..3f06188 100644 --- a/main/src/cgeo/geocaching/network/Network.java +++ b/main/src/cgeo/geocaching/network/Network.java @@ -307,7 +307,7 @@ public abstract class Network { public static JSONObject requestJSON(final String uri, final Parameters params) { final HttpResponse response = getRequest(uri, params, new Parameters("Accept", "application/json, text/javascript, */*; q=0.01")); - if (response != null && response.getStatusLine().getStatusCode() == 200) { + if (isSuccess(response)) { try { return new JSONObject(Network.getResponseData(response)); } catch (final JSONException e) { |