Skip to content

Commit

Permalink
publish-multi bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jkf committed Oct 18, 2001
1 parent 8a28da5 commit 52ea84f
Showing 1 changed file with 26 additions and 23 deletions.
49 changes: 26 additions & 23 deletions publish.cl
Expand Up @@ -23,7 +23,7 @@
;; Suite 330, Boston, MA 02111-1307 USA
;;
;;
;; $Id: publish.cl,v 1.57 2001/10/16 16:58:20 jkf Exp $
;; $Id: publish.cl,v 1.58 2001/10/18 17:17:14 jkf Exp $

;; Description:
;; publishing urls
Expand Down Expand Up @@ -594,9 +594,9 @@
(dolist (hostpair handlers
; not found, add it if we're not removing
(if* (not remove)
then (setq handlers
(list (make-host-handler :host host
:entity ent)))))
then (push (make-host-handler :host host
:entity ent)
handlers)))
(if* (eq host (host-handler-host hostpair))
then ; a match
(if* remove
Expand Down Expand Up @@ -701,25 +701,28 @@
then ; specify the wild card host
(list :wild)
else ; convert strings to vhosts
(mapcar #'(lambda (host)
(if* (stringp host)
then (let ((vhost (gethash host
(wserver-vhosts server))))
(if* (null vhost)
then ; not defined yet, must define
(setq vhost
(setf (gethash host
(wserver-vhosts server))
(make-instance 'vhost
:log-stream
(wserver-log-stream server)
:error-stream
(wserver-log-stream server)
:names
(list host)))))
vhost)
else host))
hosts)))
(let (res)
(dolist (host hosts)
(let (vhost)
(if* (stringp host)
then
(if* (null
(setq vhost (gethash host
(wserver-vhosts server))))
then ; not defined yet, must define
(setq vhost
(setf (gethash host
(wserver-vhosts server))
(make-instance 'vhost
:log-stream
(wserver-log-stream server)
:error-stream
(wserver-log-stream server)
:names
(list host)))))
else (setq vhost host))
(pushnew vhost res :test #'eq)))
res)))


(defmethod handle-request ((req http-request))
Expand Down

0 comments on commit 52ea84f

Please sign in to comment.