Browse Source

Merge pull request #2 from PapiCZ/puthandler-add-newline

Fixed newline char bug in putHandler
pull/115/head
Patrik Janoušek 6 years ago
committed by GitHub
parent
commit
5954662f8d
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      server/handlers.go

+ 1
- 1
server/handlers.go View File

@@ -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 {


Loading…
Cancel
Save