Browse code

delete a function which isn't used in the project

Signed-off-by: Yanqiang Miao <miao.yanqiang@zte.com.cn>

Yanqiang Miao authored on 2016/09/02 23:54:19
Showing 1 changed files
... ...
@@ -77,14 +77,6 @@ func ParseForm(r *http.Request) error {
77 77
 	return nil
78 78
 }
79 79
 
80
-// ParseMultipartForm ensures the request form is parsed, even with invalid content types.
81
-func ParseMultipartForm(r *http.Request) error {
82
-	if err := r.ParseMultipartForm(4096); err != nil && !strings.HasPrefix(err.Error(), "mime:") {
83
-		return err
84
-	}
85
-	return nil
86
-}
87
-
88 80
 // WriteJSON writes the value v to the http response stream as json with standard json encoding.
89 81
 func WriteJSON(w http.ResponseWriter, code int, v interface{}) error {
90 82
 	w.Header().Set("Content-Type", "application/json")