From cc2a321cfbbbb6156b119dcd9a5c46b2da1b96f0 Mon Sep 17 00:00:00 2001 From: ulrich Date: Mon, 22 Mar 2021 18:02:45 +0000 Subject: [PATCH] Code aufgeraeumt --- src/de/uhilger/avdirektor/handler/PingHandler.java | 7 +------ 1 files changed, 1 insertions(+), 6 deletions(-) diff --git a/src/de/uhilger/avdirektor/handler/PingHandler.java b/src/de/uhilger/avdirektor/handler/PingHandler.java index 1e7bde1..b94fad4 100644 --- a/src/de/uhilger/avdirektor/handler/PingHandler.java +++ b/src/de/uhilger/avdirektor/handler/PingHandler.java @@ -19,21 +19,16 @@ public class PingHandler implements HttpHandler { private static final Logger logger = Logger.getLogger(PingHandler.class.getName()); - @Override public void handle(HttpExchange t) throws IOException { logger.log(Level.FINE, "RequestURI: {0}", t.getRequestURI().toString()); - String antwort = "ping Antwort"; - - String response = antwort; + String response = "ping"; t.sendResponseHeaders(200, response.length()); OutputStream os = t.getResponseBody(); os.write(response.getBytes()); os.close(); - - } } -- Gitblit v1.9.3