We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
null
For example:
post("/accounts", { req, res -> res.status(201) })
Currently this fails with as a 404. INFO spark.webserver.MatcherFilter - The requested route [/accounts] has not been mapped in Spark
INFO spark.webserver.MatcherFilter - The requested route [/accounts] has not been mapped in Spark
In MatcherFilter.java:227, bodyContent == null is not enough to indicate the request hasn't been consumed.
bodyContent == null
boolean consumed = bodyContent != null; if (!consumed && hasOtherHandlers) { throw new NotConsumedException(); } if (!consumed && !isServletContext) { LOG.info("The requested route [" + uri + "] has not been mapped in Spark"); httpResponse.setStatus(HttpServletResponse.SC_NOT_FOUND); bodyContent = String.format(NOT_FOUND); consumed = true; }
The text was updated successfully, but these errors were encountered:
The pull request: #352 should fix the issue
Sorry, something went wrong.
I've changed my mind here, this actually makes sense. If the route is null, nothing has been mapped, so 404 is appropriate.
No branches or pull requests
For example:
Currently this fails with as a 404.
INFO spark.webserver.MatcherFilter - The requested route [/accounts] has not been mapped in Spark
In MatcherFilter.java:227,
bodyContent == null
is not enough to indicate the request hasn't been consumed.The text was updated successfully, but these errors were encountered: