feat: WIP: FeedbackPage

This commit is contained in:
huanghongxun
2021-09-08 22:23:03 +08:00
parent 279b2d6f80
commit e385a85755
8 changed files with 517 additions and 9 deletions

View File

@@ -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()) {