mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
fix content-type docker copy
Docker-DCO-1.1-Signed-off-by: Victor Vieux <victor.vieux@docker.com> (github: vieux)
This commit is contained in:
parent
79089720c4
commit
386e7c80c0
1 changed files with 1 additions and 1 deletions
|
@ -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") {
|
||||
|
|
Loading…
Reference in a new issue