diff options
Diffstat (limited to 'simple-directory-handler.scm')
-rw-r--r-- | simple-directory-handler.scm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/simple-directory-handler.scm b/simple-directory-handler.scm index 4d722c6..47dbea9 100644 --- a/simple-directory-handler.scm +++ b/simple-directory-handler.scm @@ -40,6 +40,10 @@ intarweb spiffy (only uri-common uri-encode-string char-set:uri-unreserved) (only srfi-14 char-set-complement char-set-delete)) +(cond-expand + (chicken-6 (import (scheme base))) ; For make-parameter, which moved from (chicken base) + (else)) + (define (encode-path p) (let ((cs (char-set-delete (char-set-complement char-set:uri-unreserved) #\/))) (uri-encode-string p cs))) |