Skip to content

Commit

Permalink
My strip-trailing-slashes broke the front page, by replacing '/' with…
Browse files Browse the repository at this point in the history
… '' for the root.
  • Loading branch information
amalloy committed Jul 19, 2011
1 parent b877f3d commit bcfefe6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/foreclojure/ring.clj
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@

(defn wrap-strip-trailing-slash [handler]
(fn [request]
(handler (update-in request [:uri] s/replace #"/$" ""))))
(handler (update-in request [:uri] s/replace #"(?<=.)/$" ""))))

0 comments on commit bcfefe6

Please sign in to comment.