Merge pull request #4341 from vieux/fix_content_type_copy
fix content-type docker copy Upstream-commit: 94001dc6c6bfa146978e2a36dbc4bb772e935b04 Component: engine
This commit is contained in:
@ -907,7 +907,7 @@ func postContainersCopy(eng *engine.Engine, version float64, w http.ResponseWrit
|
||||
}
|
||||
|
||||
job := eng.Job("container_copy", vars["name"], copyData.Get("Resource"))
|
||||
streamJSON(job, w, false)
|
||||
job.Stdout.Add(w)
|
||||
if err := job.Run(); err != nil {
|
||||
utils.Errorf("%s", err.Error())
|
||||
if strings.Contains(err.Error(), "No such container") {
|
||||
|
||||
Reference in New Issue
Block a user