From 1537a32cc9da2b034de3c50f9dc940277e180ca0 Mon Sep 17 00:00:00 2001 From: Matthew Butterick Date: Mon, 12 May 2014 12:33:58 -0700 Subject: [PATCH] add comment re: url->path behavior --- server-routes.rkt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server-routes.rkt b/server-routes.rkt index b4e56fc..e6cbd19 100644 --- a/server-routes.rkt +++ b/server-routes.rkt @@ -212,8 +212,8 @@ (define base (world:current-project-root)) (define file (url->path (request-uri req))) (if (eq? (system-path-convention-type) 'windows) - (build-path base file) - (reroot-path file base))) + (build-path base file) ; because url->path returns a relative path for 'windows + (reroot-path file base))) ; and a complete path for 'unix ;; default route (define (route-default req)