tRemove useless call to parseForm() - partage - File upload system
(HTM) git clone git://git.z3bra.org/partage.git
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit bd7a30667ba7fc6c187d4eb085c7d2bac36ed0ec
(DIR) parent fcfbd59d73a493ce08a2805ab3ffd7cc42fd8b86
(HTM) Author: Willy Goiffon <dev@z3bra.org>
Date: Mon, 11 Oct 2021 20:41:11 +0200
Remove useless call to parseForm()
Diffstat:
M partage.go | 7 -------
1 file changed, 0 insertions(+), 7 deletions(-)
---
(DIR) diff --git a/partage.go b/partage.go
t@@ -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)
}