mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 16:14:10 -08:00
Fix behaviour of HttpUrlConnection responseCode/responseMessage
This commit is contained in:
parent
8e4b84545f
commit
a9beef3a15
|
@ -87,12 +87,12 @@ public abstract class THttpURLConnection extends TURLConnection {
|
|||
}
|
||||
|
||||
public int getResponseCode() throws IOException {
|
||||
getInputStream();
|
||||
connect();
|
||||
return responseCode;
|
||||
}
|
||||
|
||||
public String getResponseMessage() throws IOException {
|
||||
getInputStream();
|
||||
connect();
|
||||
return responseMessage;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user