diff --git a/api_test.go b/api_test.go index 83ece7859c..fcb3bc8593 100644 --- a/api_test.go +++ b/api_test.go @@ -801,6 +801,8 @@ func TestPostContainersStart(t *testing.T) { t.Fatal(err) } + req.Header.Set("Content-Type", "application/json") + r := httptest.NewRecorder() if err := postContainersStart(srv, APIVERSION, r, req, map[string]string{"name": container.ID}); err != nil { t.Fatal(err)