Skip to content

Commit fb08b0e

Browse files
check http code
1 parent 51fab6b commit fb08b0e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

source/upload.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,9 @@ namespace web {
7474

7575
if (res != CURLE_OK) {
7676
urlresponse = "curl failed";
77-
} else if (urlresponse.size() > 0x50) {
77+
} else if (http_code != 200) {
78+
urlresponse = "failed with " + std::to_string(http_code);
79+
} else if (urlresponse.size() > 0x30) {
7880
urlresponse = "result too long";
7981
}
8082

0 commit comments

Comments
 (0)