mirror of
https://github.com/metosin/reitit.git
synced 2025-12-18 17:01:11 +00:00
Fix incorrect request key
It's :request-method not :method
This commit is contained in:
parent
c10764fb4d
commit
c8b2aa7bc4
1 changed files with 1 additions and 1 deletions
|
|
@ -123,7 +123,7 @@
|
|||
[{:keys [method] :or {method :both}}]
|
||||
(let [redirect-handler (fn redirect-handler [request]
|
||||
(let [uri (:uri request)
|
||||
status (if (= (:method request) :get) 301 308)
|
||||
status (if (= (:request-method request) :get) 301 308)
|
||||
maybe-redirect (fn maybe-redirect [path]
|
||||
(if (r/match-by-path (::r/router request) path)
|
||||
{:status status
|
||||
|
|
|
|||
Loading…
Reference in a new issue