partage

Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.z3bra.org/partage.git
Log | Files | Refs | README | LICENSE

commit 676d51641bad5bcc2f58dce85ddd563ac86741a3
parent cc5de454d8290ffeb896746714ab169ba4c5e15c
Author: Willy Goiffon <dev@z3bra.org>
Date:   Wed, 20 Oct 2021 01:28:50 +0200

Add newline after filename for PUT requests

Diffstat:
Mpartage.go | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/partage.go b/partage.go @@ -162,7 +162,7 @@ func uploaderPut(w http.ResponseWriter, r *http.Request) { writemeta(tmp.Name(), conf.expiry) resp := conf.baseuri + conf.filectx + filepath.Base(tmp.Name()) - w.Write([]byte(resp)) + w.Write([]byte(resp + "\r\n")) } func uploaderPost(w http.ResponseWriter, r *http.Request) {