We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fd3b13e commit bf930bfCopy full SHA for bf930bf
1 file changed
src/main/java/org/gaul/httpbin/HttpBinHandler.java
@@ -57,7 +57,7 @@ public void handle(String target, Request baseRequest,
57
try (InputStream is = request.getInputStream();
58
OutputStream os = servletResponse.getOutputStream()) {
59
Writer writer = new OutputStreamWriter(os, StandardCharsets.UTF_8);
60
- if (method.equals("GET") && uri.startsWith("/status/")) {
+ if (uri.startsWith("/status/")) {
61
Utils.copy(is, Utils.NULL_OUTPUT_STREAM);
62
int status = Integer.parseInt(uri.substring(
63
"/status/".length()));
0 commit comments