From 61661f102fd4bc7edc6205d24eef6d4d2d55c046 Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Sun, 25 Feb 2024 03:59:03 +0000 Subject: [PATCH] add error code --- src/main/java/opendota/Main.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/opendota/Main.java b/src/main/java/opendota/Main.java index f5274ee9..c569d108 100644 --- a/src/main/java/opendota/Main.java +++ b/src/main/java/opendota/Main.java @@ -98,6 +98,7 @@ public void handle(HttpExchange t) throws IOException { } if (error.toString().contains("bunzip2: (stdin) is not a bzip2 file.")) { // Tried to unzip a non-bz2 file + status = 200; } t.sendResponseHeaders(status, 0); t.getResponseBody().close();