mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
delete a function which isn't used in the project
Signed-off-by: Yanqiang Miao <miao.yanqiang@zte.com.cn>
This commit is contained in:
parent
75f589a979
commit
81849600fc
1 changed files with 0 additions and 8 deletions
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue