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:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user