Updated "POST /containers/create" to return the right Content-Type.

This commit is contained in:
David Sissitka 2013-08-29 09:14:14 -07:00
parent bf98fff925
commit f6b56e996d
1 changed files with 2 additions and 1 deletions

3
api.go
View File

@ -547,8 +547,9 @@ func postContainersCreate(srv *Server, version float64, w http.ResponseWriter, r
if err != nil {
return err
}
w.Header().Set("Content-Type", "application/json")
w.WriteHeader(http.StatusCreated)
writeJSON(w, b)
w.Write(b)
return nil
}