From 81849600fc1d7335f1ddc3ca5aa1cb5625bd2d30 Mon Sep 17 00:00:00 2001 From: Yanqiang Miao Date: Fri, 2 Sep 2016 22:54:19 +0800 Subject: [PATCH] delete a function which isn't used in the project Signed-off-by: Yanqiang Miao --- api/server/httputils/httputils.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/api/server/httputils/httputils.go b/api/server/httputils/httputils.go index 3b0f7a0dc0..46ad571778 100644 --- a/api/server/httputils/httputils.go +++ b/api/server/httputils/httputils.go @@ -77,14 +77,6 @@ func ParseForm(r *http.Request) error { return nil } -// ParseMultipartForm ensures the request form is parsed, even with invalid content types. -func ParseMultipartForm(r *http.Request) error { - if err := r.ParseMultipartForm(4096); err != nil && !strings.HasPrefix(err.Error(), "mime:") { - return err - } - return nil -} - // WriteJSON writes the value v to the http response stream as json with standard json encoding. func WriteJSON(w http.ResponseWriter, code int, v interface{}) error { w.Header().Set("Content-Type", "application/json")