Skip to content

Commit

Permalink
handle port, https in uri-for-action
Browse files Browse the repository at this point in the history
  • Loading branch information
jrockway committed Nov 17, 2008
1 parent acb87d3 commit e7f1918
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions action-manager.lisp
Expand Up @@ -24,6 +24,7 @@
(if (not path)
(error (format nil "~A is not in the path dispatch table!" action))
(setf path (car path)))
(format nil "http://~A~A"
(if (boundp '*request*) (server-addr) "test")
path)))
(if (not (boundp '*request*))
(format nil "http://test~A" path) ; for tests
(let ((scheme (if (ssl-p) "https" "http")))
(format nil "~A://~A~A" scheme (host) path)))))

0 comments on commit e7f1918

Please sign in to comment.