From f3efa21fb78688b92022304bbb486f7c4eb3b7bb Mon Sep 17 00:00:00 2001 From: Peter Bex Date: Fri, 3 Sep 2021 16:12:34 +0200 Subject: Also mangle the path when sending to a proxy That path should also have a trailing slash just like when requesting a regular URI. See #1781 --- http-client.scm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/http-client.scm b/http-client.scm index a15f6e6..79638c1 100644 --- a/http-client.scm +++ b/http-client.scm @@ -591,8 +591,7 @@ host: #f port: #f scheme: #f))) ;; Update path only when it needs to be updated, to ;; avoid unnecessarily mangling it (see #1448) - (req-uri (if (or (http-connection-proxy con) - (not (memq (uri-path req-uri) '(() #f)))) + (req-uri (if (not (memq (uri-path req-uri) '(() #f))) req-uri (update-uri req-uri path: '(/ "")))) (request (write-request (update-request req uri: req-uri))) -- cgit v1.2.3