Explorar o código

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

Victor Vieux %!s(int64=11) %!d(string=hai) anos
pai
achega
104a86936a
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      api_test.go

+ 2 - 0
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)