Skip to content

Commit

Permalink
add mandatory arg (nil as middleware) when using find-handler
Browse files Browse the repository at this point in the history
  • Loading branch information
Chemaclass committed Jun 22, 2024
1 parent 0e33621 commit 50c74f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/router/handler.phel
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
(let [route (get-in request [:attributes :route])]
(if route
(let [method (-> request :method php/strtolower keyword)
handler (find-handler route method)]
handler (find-handler route method nil)]
(if handler
(not-acceptable request)
(method-not-allowed request)))
Expand Down

0 comments on commit 50c74f4

Please sign in to comment.