Browse Source

Merge pull request #1 from PapiCZ/multiple-files-upload-fix

Added newline character at the end of every link when uploading multiple files
pull/115/head
Patrik Janoušek 6 years ago
committed by GitHub
parent
commit
cc16bde5aa
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

@@ -281,7 +281,7 @@ func (s *Server) postHandler(w http.ResponseWriter, r *http.Request) {
}

relativeURL, _ := url.Parse(path.Join(token, filename))
fmt.Fprint(w, getURL(r).ResolveReference(relativeURL).String())
fmt.Fprint(w, getURL(r).ResolveReference(relativeURL).String() + "\n")
}
}
}


Loading…
Cancel
Save