Skip to content

Commit bf930bf

Browse files
committed
status endpoint should accept all verbs
1 parent fd3b13e commit bf930bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/gaul/httpbin/HttpBinHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public void handle(String target, Request baseRequest,
5757
try (InputStream is = request.getInputStream();
5858
OutputStream os = servletResponse.getOutputStream()) {
5959
Writer writer = new OutputStreamWriter(os, StandardCharsets.UTF_8);
60-
if (method.equals("GET") && uri.startsWith("/status/")) {
60+
if (uri.startsWith("/status/")) {
6161
Utils.copy(is, Utils.NULL_OUTPUT_STREAM);
6262
int status = Integer.parseInt(uri.substring(
6363
"/status/".length()));

0 commit comments

Comments
 (0)