[hunchentoot-devel] acceptor-names not found
Phil Marneweck
zaries at global.co.za
Wed Oct 14 12:33:44 UTC 2009
Has any body tried to use acceptor-names in hunchentoot
define-easy-handler?
I can only get the easy-handler to find the acceptor-name if I change
(find (acceptor-name *acceptor*) acceptor-names :test #'eq))
to
(find (acceptor-name *acceptor*) acceptor-names :test #'equal))
In the following function.
(defun dispatch-easy-handlers (request)
"This is a dispatcher which returns the appropriate handler
defined with DEFINE-EASY-HANDLER, if there is one."
(loop for (uri acceptor-names easy-handler) in *easy-handler-alist*
when (and (or (eq acceptor-names t)
(find (acceptor-name *acceptor*) acceptor-names :test #'eq))
....
As far as I have seen in my tests acceptor-names have to be strings(sequences) so changing eq to equal makes sense...
Or am I smoking my socks again?
More information about the Tbnl-devel
mailing list