未验证 提交 ccb7a890 编写于 作者: Z zryfish 提交者: GitHub

fix 415 unsupported media type (#2122)

上级 5c44d17d
......@@ -40,7 +40,8 @@ func init() {
func NewWebService(gv schema.GroupVersion) *restful.WebService {
webservice := restful.WebService{}
webservice.Path(ApiRootPath + "/" + gv.String())
webservice.Path(ApiRootPath + "/" + gv.String()).
Produces(restful.MIME_JSON)
return &webservice
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册