From bef898bc3fb474345239d565ec1aed9e202c77af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mika=C3=ABl=20Cluseau?= Date: Mon, 4 Feb 2019 14:41:51 +1100 Subject: [PATCH] fix --- cmd/dkl-local-server/ws-configs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/dkl-local-server/ws-configs.go b/cmd/dkl-local-server/ws-configs.go index 7ae702a..082734d 100644 --- a/cmd/dkl-local-server/ws-configs.go +++ b/cmd/dkl-local-server/ws-configs.go @@ -29,7 +29,7 @@ func writeNewConfig(reader io.Reader) (err error) { defer os.Remove(out.Name()) - _, err = io.Copy(out, req.Request.Body) + _, err = io.Copy(out, reader) out.Close() if err != nil { return