1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Replace HTTP_BAD_REQUEST with http status code literals as org.apache is no longer available on newer platforms

This commit is contained in:
hogliux 2015-09-14 09:18:20 +01:00
parent bbbe451b7d
commit 290c502e78

View file

@ -661,7 +661,7 @@ public class JuceAppActivity extends Activity
}
catch (IOException e)
{
if (connection.getResponseCode() < org.apache.http.HttpStatus.SC_BAD_REQUEST)
if (connection.getResponseCode() < 400)
throw e;
}
finally
@ -669,7 +669,7 @@ public class JuceAppActivity extends Activity
statusCode[0] = connection.getResponseCode();
}
if (statusCode[0] >= org.apache.http.HttpStatus.SC_BAD_REQUEST)
if (statusCode[0] >= 400)
inputStream = connection.getErrorStream();
else
inputStream = connection.getInputStream();