The following pull request was submitted through Github. It can be accessed and reviewed at: https://github.com/lxc/lxd/pull/7392
This e-mail was sent by the LXC bot, direct replies will not reach the author unless they happen to be subscribed to this list. === Description (from pull-request) === Closes #7344 Signed-off-by: Stéphane Graber <stgra...@ubuntu.com>
From e2dcbb6786f80643c8267d3897abaf2c4e9b77dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgra...@ubuntu.com> Date: Tue, 19 May 2020 19:41:44 -0400 Subject: [PATCH] lxd/api: Don't strip double slashes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes #7344 Signed-off-by: Stéphane Graber <stgra...@ubuntu.com> --- lxd/api.go | 1 + 1 file changed, 1 insertion(+) diff --git a/lxd/api.go b/lxd/api.go index 70438ca6a5..0b95fe729a 100644 --- a/lxd/api.go +++ b/lxd/api.go @@ -20,6 +20,7 @@ func restServer(d *Daemon) *http.Server { /* Setup the web server */ mux := mux.NewRouter() mux.StrictSlash(false) + mux.SkipClean(true) mux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { w.Header().Set("Content-Type", "application/json")
_______________________________________________ lxc-devel mailing list lxc-devel@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-devel