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:
parent
bbbe451b7d
commit
290c502e78
1 changed files with 2 additions and 2 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue