mirror of
https://github.com/dutchcoders/transfer.sh.git
synced 2024-11-27 06:30:19 +01:00
Merge pull request #2 from PapiCZ/puthandler-add-newline
Fixed newline char bug in putHandler
This commit is contained in:
commit
5954662f8d
1 changed files with 1 additions and 1 deletions
|
@ -411,7 +411,7 @@ func (s *Server) putHandler(w http.ResponseWriter, r *http.Request) {
|
||||||
w.Header().Set("Content-Type", "text/plain")
|
w.Header().Set("Content-Type", "text/plain")
|
||||||
|
|
||||||
relativeURL, _ := url.Parse(path.Join(token, filename))
|
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 {
|
func getURL(r *http.Request) *url.URL {
|
||||||
|
|
Loading…
Reference in a new issue