mirror of
https://github.com/konsoletyper/teavm.git
synced 2025-03-01 11:35:54 +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