Merge pull request #26279 from miaoyq/delete-a-useless-funtion
delete a function which isn't used in the project Upstream-commit: 93a8b5c42be79ae2ed5c956dfbb39da8e1f6d78b Component: engine
This commit is contained in:
@ -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")
|
||||
|
||||
Reference in New Issue
Block a user