aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2024-06-05 16:13:02 +0100
committerChristopher Baines <mail@cbaines.net>2024-06-05 16:13:02 +0100
commit8609e3cb4894679200c940a30dc8b3688bc34213 (patch)
tree93b873843500646e24d1944a6788052f0029587e
parent2b8e87602bb3a43089b2303378c864da6533799d (diff)
downloadnar-herder-8609e3cb4894679200c940a30dc8b3688bc34213.tar
nar-herder-8609e3cb4894679200c940a30dc8b3688bc34213.tar.gz
Revert "Don't strip the Via header"
As it's changing the response headers, which don't mean anything here. This reverts commit 2b8e87602bb3a43089b2303378c864da6533799d.
-rw-r--r--nar-herder/server.scm7
1 files changed, 1 insertions, 6 deletions
diff --git a/nar-herder/server.scm b/nar-herder/server.scm
index 720fcf1..7046784 100644
--- a/nar-herder/server.scm
+++ b/nar-herder/server.scm
@@ -404,12 +404,7 @@
. ,(string-append
"/internal/nar/"
compression "/"
- (uri-encode filename)))
- ,@(let ((via (request-via request)))
- (if (null? via)
- '()
- `((Via
- . ,(string-join via ", ")))))))
+ (uri-encode filename)))))
#f)))
(let ((cached-narinfo-file
(and narinfo ; must be a known hash