Skip to content

Commit

Permalink
change things back to hello
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelluethi committed Sep 24, 2024
1 parent d7525cb commit ed2c6b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/org/example/SimpleHttpServer.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/org/example/SimpleHttpServerTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,6 @@ public void testHelloWithName() throws Exception {
in.close();
connection.disconnect();

assertEquals("Hi " + name, content.toString());
assertEquals("Hello " + name, content.toString());
}
}

0 comments on commit ed2c6b5

Please sign in to comment.