Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

not-found route does not output body on HEAD requests

  • Loading branch information...
commit 57166873e5faa4333c2f2210305bf213b4155dee 1 parent 19b9677
@weavejester authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/compojure/route.clj
View
4 src/compojure/route.clj
@@ -35,4 +35,6 @@
"A route that returns a 404 not found response, with its argument as the
response body."
[body]
- (ANY "*" [] {:status 404, :body body}))
+ (routes
+ (HEAD "*" [] {:status 404})
+ (ANY "*" [] {:status 404, :body body})))
Please sign in to comment.
Something went wrong with that request. Please try again.