Remove useless call to parseForm()
git-svn-id: file:///srv/svn/repo/marisa/trunk@10 d6811dac-2434-b64a-9ddc-f563ab233461
This commit is contained in:
@@ -135,16 +135,9 @@ func uploaderGet(w http.ResponseWriter, r *http.Request) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func uploader(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 {
|
switch r.Method {
|
||||||
case "PUT":
|
case "PUT":
|
||||||
uploaderPut(w, r)
|
uploaderPut(w, r)
|
||||||
|
|
||||||
case "GET":
|
case "GET":
|
||||||
uploaderGet(w, r)
|
uploaderGet(w, r)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user