From 072f058ff66ee8e2e7865307040ab5e9c8c75b48 Mon Sep 17 00:00:00 2001 From: Peter Bex Date: Thu, 12 Sep 2024 15:41:24 +0200 Subject: Add support for CHICKEN 6 This is backwards-compatible - there are only a handful of changes needed, so we don't have to make a hard break here. --- simple-directory-handler.scm | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'simple-directory-handler.scm') 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))) -- cgit v1.2.3