diff --git a/src/main/java/org/example/SimpleHttpServer.java b/src/main/java/org/example/SimpleHttpServer.java index 8e90f68..8ae9b99 100644 --- a/src/main/java/org/example/SimpleHttpServer.java +++ b/src/main/java/org/example/SimpleHttpServer.java @@ -35,7 +35,7 @@ public void handle(HttpExchange exchange) throws IOException { } // Create the response message - String response = "Hi " + name; + String response = "Hello " + name; // Send the response back exchange.sendResponseHeaders(200, response.getBytes().length); diff --git a/src/test/java/org/example/SimpleHttpServerTest.java b/src/test/java/org/example/SimpleHttpServerTest.java index c6ea918..564e5b6 100644 --- a/src/test/java/org/example/SimpleHttpServerTest.java +++ b/src/test/java/org/example/SimpleHttpServerTest.java @@ -60,6 +60,6 @@ public void testHelloWithName() throws Exception { in.close(); connection.disconnect(); - assertEquals("Hi " + name, content.toString()); + assertEquals("Hello " + name, content.toString()); } }