mirror of
https://github.com/vale981/myway
synced 2025-03-04 17:31:41 -05:00
Merge pull request #1 from hiyosi/master
:method arguments in 'destructuring-bind' macro was bind to nil.
This commit is contained in:
commit
24350cef2d
2 changed files with 3 additions and 3 deletions
|
@ -61,5 +61,5 @@
|
|||
(defun to-app (mapper)
|
||||
(lambda (env)
|
||||
(let ((*env* env))
|
||||
(destructuring-bind (&key method path-info &allow-other-keys) env
|
||||
(dispatch mapper path-info :method method)))))
|
||||
(destructuring-bind (&key request-method path-info &allow-other-keys) env
|
||||
(dispatch mapper path-info :method request-method)))))
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
(is (dispatch *mapper* "/new" :method :GET) "new")
|
||||
|
||||
(is (funcall (to-app *mapper*)
|
||||
'(:method :GET :path-info "/"))
|
||||
'(:request-method :GET :path-info "/"))
|
||||
"Hello, World!")
|
||||
|
||||
(connect *mapper* "/id/:n"
|
||||
|
|
Loading…
Add table
Reference in a new issue