aboutsummaryrefslogtreecommitdiff
path: root/lazybones-hunchentoot.lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lazybones-hunchentoot.lisp')
-rw-r--r--lazybones-hunchentoot.lisp14
1 files changed, 6 insertions, 8 deletions
diff --git a/lazybones-hunchentoot.lisp b/lazybones-hunchentoot.lisp
index 2b84ac1..1e62b85 100644
--- a/lazybones-hunchentoot.lisp
+++ b/lazybones-hunchentoot.lisp
@@ -122,11 +122,9 @@ the value of the Content-Type request header."
:address "0.0.0.0"))
(defmethod h:acceptor-dispatch-request ((acceptor lazybones-acceptor) request)
- (let ((lzb:*request* request)
- (lzb:*response* h:*reply*))
- (loop for app in (acceptor-apps acceptor)
- for (endpoint . args) = (lzb:find-endpoint app request)
- when endpoint
- return (lzb:run-endpoint endpoint args request)
- ;; if no endpoint was found, call next method.
- finally (call-next-method))))
+ (loop for app in (acceptor-apps acceptor)
+ for (endpoint . args) = (lzb:find-endpoint app request)
+ when endpoint
+ return (lzb:run-endpoint endpoint args request h:*reply* app)
+ ;; if no endpoint was found, call next method.
+ finally (call-next-method)))