feat: WIP: FeedbackPage
This commit is contained in:
@@ -151,6 +151,10 @@ public abstract class HttpRequest {
|
||||
|
||||
if (responseCodeTester != null) {
|
||||
responseCodeTester.accept(new URL(url), con.getResponseCode());
|
||||
} else {
|
||||
if (con.getResponseCode() / 100 != 2) {
|
||||
throw new ResponseCodeException(new URL(url), con.getResponseCode());
|
||||
}
|
||||
}
|
||||
|
||||
try (OutputStream os = con.getOutputStream()) {
|
||||
|
||||
Reference in New Issue
Block a user