mirror of
https://github.com/clearlinux/docker.git
synced 2026-09-05 05:01:28 +00:00
api.go:108 Error parsing media type: error: mime: no media type
fix
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user