Type define note "errNotAcceptable indicates Content-Type is not recognized" wrong

This commit is contained in:
lixiaobing10051267 2016-07-16 11:31:52 +08:00
parent 5e1b75d164
commit 7ecae85493

2
pkg/apiserver/errors.go Normal file → Executable file
View File

@ -126,7 +126,7 @@ func (e errNotAcceptable) Status() unversioned.Status {
}
}
// errNotAcceptable indicates Content-Type is not recognized
// errUnsupportedMediaType indicates Content-Type is not recognized
// TODO: move to api/errors if other code needs to return this
type errUnsupportedMediaType struct {
accepted []string