Skip to content

Commit

Permalink
adapt to new hunchentoot api
Browse files Browse the repository at this point in the history
  • Loading branch information
hanshuebner committed Feb 23, 2011
1 parent 8cfb072 commit 51fd1fb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/packages.lisp
Expand Up @@ -175,6 +175,8 @@
#:with-bknr-page
#:cmslink

#:bknr-acceptor

#:web-server-log-event-referer
#:web-server-log-event-url
#:web-server-log-event-user-agent
Expand Down
7 changes: 5 additions & 2 deletions src/web/handlers.lisp
Expand Up @@ -343,8 +343,11 @@ belongs to the user that is specified in the request."
(error "cannot find \"anonymous\" user"))))))
(session-value 'bknr-session))

(defun bknr-dispatch (request)
(declare (ignore request))
(defclass bknr-acceptor (hunchentoot:acceptor)
()
(:default-initargs :persistent-connections-p nil))

(defmethod hunchentoot:acceptor-dispatch-request ((acceptor bknr-acceptor) (request hunchentoot:request))
(let ((handler (find-if #'handler-matches-p (website-handlers *website*))))
(cond
(handler
Expand Down

0 comments on commit 51fd1fb

Please sign in to comment.