1
0
mirror of https://github.com/docker/docs.git synced 2026-11-11 04:02:07 +03:00

Merge pull request #1056 from rmg/preserve-exec-status

preserve status code from POST /containers/*/exec
This commit is contained in:
Victor Vieux
2015-07-14 10:51:19 -07:00

View File

@@ -494,6 +494,7 @@ func postContainersExec(c *context, w http.ResponseWriter, r *http.Request) {
container.Info.ExecIDs = append(container.Info.ExecIDs, id.ID)
w.Header().Set("Content-Type", "application/json")
w.WriteHeader(resp.StatusCode)
w.Write(data)
}