From da8c7124e53c7d1fcd8f5c32b24e30fdc4ce9725 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrik=20Janou=C5=A1ek?= Date: Tue, 10 Apr 2018 16:52:15 +0200 Subject: [PATCH] Fixed newline char bug in putHandler --- server/handlers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/handlers.go b/server/handlers.go index 050410e..fa3e292 100644 --- a/server/handlers.go +++ b/server/handlers.go @@ -411,7 +411,7 @@ func (s *Server) putHandler(w http.ResponseWriter, r *http.Request) { w.Header().Set("Content-Type", "text/plain") relativeURL, _ := url.Parse(path.Join(token, filename)) - fmt.Fprint(w, getURL(r).ResolveReference(relativeURL).String()) + fmt.Fprint(w, getURL(r).ResolveReference(relativeURL).String() + "\n") } func getURL(r *http.Request) *url.URL {