api.go:108 Error parsing media type: error: mime: no media type

fix
Upstream-commit: 104a86936ab2611d6e8e54f5ef686f2e9d231bcf
Component: engine
This commit is contained in:
Victor Vieux
2013-10-16 19:32:03 +00:00
parent 593a4ad4b2
commit 410e5fb77b

View File

@ -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)