Changeset 12005 in project for release/4/spiffy/trunk/spiffy.scm
- Timestamp:
- 09/25/08 23:00:49 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
release/4/spiffy/trunk/spiffy.scm
r11985 r12005 165 165 (let ((path (make-pathname (root-path) current-path))) 166 166 (cond 167 ;; Check if there's a registered URI-handler first167 ;; TODO Check if there's a registered URI-handler first 168 168 ((directory? path) 169 169 (match remaining-path … … 177 177 178 178 ;; Determine the vhost to use. This tries to use the Host: header first 179 ;; and i tit's not there, falls back to try to determine the vhost179 ;; and if it's not there, falls back to try to determine the vhost 180 180 ;; from host in the request line's URI, if any. 181 ;; In >= HTTP/1.1, a Host line is required, as per section 14.23 of RFC 2616181 ;; In HTTP >= 1.1, a Host line is required, as per section 14.23 of RFC 2616. 182 182 ;; It returns the empty string for HTTP/1.0, which is a bit of a hack but 183 183 ;; makes host regex matching less complicated. … … 209 209 (request-uri (current-request)) 210 210 (absolute-uri (string-append "http://" host)))))) ; XXX 211 (process-entry (car path) (cdr path)))211 (process-entry "" path)) 212 212 ;; No host in the request? That's an error. 213 213 (send-status 400 "Bad request"
Note: See TracChangeset
for help on using the changeset viewer.