Formating
svn: r698
This commit is contained in:
parent
dd88172baf
commit
6f71fcd413
|
@ -37,7 +37,6 @@
|
|||
req
|
||||
(read-bindings/handled conn meth uri (request-headers req)
|
||||
host-info))
|
||||
|
||||
(cond
|
||||
[(continuation-url? uri)
|
||||
=> (lambda (k-ref)
|
||||
|
|
|
@ -152,17 +152,17 @@
|
|||
;; at a later time.
|
||||
(define dispatch
|
||||
(let* ([cache (make-hash-table 'equal)]
|
||||
[sema (make-semaphore 1)]
|
||||
[lookup-dispatcher
|
||||
(lambda (host host-info)
|
||||
(hash-table-get
|
||||
cache host
|
||||
(lambda ()
|
||||
(call-with-semaphore
|
||||
sema (lambda ()
|
||||
(hash-table-get
|
||||
cache host
|
||||
(lambda () (host-info->dispatcher host-info))))))))])
|
||||
[sema (make-semaphore 1)]
|
||||
[lookup-dispatcher
|
||||
(lambda (host host-info)
|
||||
(hash-table-get
|
||||
cache host
|
||||
(lambda ()
|
||||
(call-with-semaphore
|
||||
sema (lambda ()
|
||||
(hash-table-get
|
||||
cache host
|
||||
(lambda () (host-info->dispatcher host-info))))))))])
|
||||
(lambda (conn req)
|
||||
(let* ([host (get-host (request-uri req) (request-headers req))]
|
||||
[host-info (config:virtual-hosts host)])
|
||||
|
|
Loading…
Reference in New Issue
Block a user