Updated "POST /containers/create" to return the right Content-Type.
Upstream-commit: f6b56e996d6b721cb95c1a19b1df061900fb8fd1 Component: engine
This commit is contained in:
@ -547,8 +547,9 @@ func postContainersCreate(srv *Server, version float64, w http.ResponseWriter, r
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
w.Header().Set("Content-Type", "application/json")
|
||||
w.WriteHeader(http.StatusCreated)
|
||||
writeJSON(w, b)
|
||||
w.Write(b)
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user