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 258fc59
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
],
"require": {
"php": ">=8.2",
"phel-lang/phel-lang": ">=0.14",
"phel-lang/phel-lang": ">=0.15",
"symfony/routing": "^6.4 || ^7.0"
},
"scripts": {
Expand Down
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 258fc59

Please sign in to comment.