partage

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

commit bd7a30667ba7fc6c187d4eb085c7d2bac36ed0ec
parent fcfbd59d73a493ce08a2805ab3ffd7cc42fd8b86
Author: Willy Goiffon <dev@z3bra.org>
Date:   Mon, 11 Oct 2021 20:41:11 +0200

Remove useless call to parseForm()

Diffstat:
Mpartage.go | 7-------
1 file changed, 0 insertions(+), 7 deletions(-)

diff --git a/partage.go b/partage.go @@ -135,16 +135,9 @@ func uploaderGet(w http.ResponseWriter, r *http.Request) { } func uploader(w http.ResponseWriter, r *http.Request) { - - err := r.ParseForm() - if err != nil { - fmt.Printf("%s %s: %s", r.Method, r.URL.Path, err) - } - switch r.Method { case "PUT": uploaderPut(w, r) - case "GET": uploaderGet(w, r) }