remove unused SERVLET-PREFIX option.
This commit is contained in:
parent
ba04964918
commit
ffa8ad13ae
|
@ -49,6 +49,8 @@
|
|||
;; instance lifetime is in seconds
|
||||
(instance-lifetime options:instance-lifetime set-options:instance-lifetime))
|
||||
|
||||
;; Servlet-prefix is unused now. Formerly, it contained the virtual
|
||||
;; path prefix for the handler.
|
||||
(define (make-default-options servlet-path servlet-prefix)
|
||||
(make-options servlet-path servlet-prefix #t 600))
|
||||
|
||||
|
@ -79,10 +81,8 @@
|
|||
(lambda ()
|
||||
(random-integer 1073741824)))) ; I hope, 1+ billion is enough....
|
||||
|
||||
;; Servlet-prefix gives virtual prefixed path to servlets. Currently,
|
||||
;; it is ignored.
|
||||
(define (servlet-handler servlet-path . servlet-prefix)
|
||||
(set-thread-fluid! *options* (make-default-options servlet-path servlet-prefix))
|
||||
(define (servlet-handler servlet-path)
|
||||
(set-thread-fluid! *options* (make-default-options servlet-path #f))
|
||||
(lambda (path req)
|
||||
(if (pair? path) ; need at least one element
|
||||
(let ((request-method (request-method req))
|
||||
|
|
Loading…
Reference in New Issue