accept any value for force in url query string

pull/58/head
Matthew Butterick 10 years ago
parent 2dae1ca31f
commit 9c8272204b

@ -222,7 +222,7 @@
;; default route ;; default route
(define (route-default req) (define (route-default req)
(logger req) (logger req)
(define force (equal? (get-query-value (request-uri req) 'force) "true")) (define force (->boolean (get-query-value (request-uri req) 'force)))
(render-from-source-or-output-path (req->path req) #:force force) (render-from-source-or-output-path (req->path req) #:force force)
(next-dispatcher)) (next-dispatcher))

Loading…
Cancel
Save