Skip to content

Commit

Permalink
fix(handler): wrong logic
Browse files Browse the repository at this point in the history
  • Loading branch information
DreamOneX committed Aug 1, 2022
1 parent fbcfb82 commit a5acd1a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public void run() {
InputStream stream;
try (Response response = client.newCall(request).execute()) {
stream = response.body().byteStream();
if (response.code() != 404) {
if (response.code() == 404) {
target.sendMessage("404 Not Found");
return;
} else if (response.code() != 200) {
Expand Down

0 comments on commit a5acd1a

Please sign in to comment.