aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2022-05-17 12:01:28 +0100
committerChristopher Baines <mail@cbaines.net>2022-05-17 12:01:28 +0100
commita24fbd108f75c8f27d2f68f2d1a051e2f3f3e191 (patch)
treeb63b035bd85a45fe2b197c7337b22e940fbe64ea
parent08dd085d3359cf85c22e81faedbc9c9349f6bac2 (diff)
downloadnar-herder-a24fbd108f75c8f27d2f68f2d1a051e2f3f3e191.tar
nar-herder-a24fbd108f75c8f27d2f68f2d1a051e2f3f3e191.tar.gz
Encode filenames when passing the request back to nginx
This handles filenames which contain characters like ? and =.
-rw-r--r--nar-herder/server.scm2
1 files changed, 1 insertions, 1 deletions
diff --git a/nar-herder/server.scm b/nar-herder/server.scm
index ea0c0a8..68e3219 100644
--- a/nar-herder/server.scm
+++ b/nar-herder/server.scm
@@ -174,7 +174,7 @@
. ,(string-append
"/internal/nar/"
compression "/"
- filename))))
+ (uri-encode filename)))))
#f)
(values (build-response #:code 404)
"404"))))