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
(define (route-default 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)
(next-dispatcher))

Loading…
Cancel
Save