mirror of
https://github.com/kataras/iris.git
synced 2025-12-18 02:17:05 +00:00
Implement ResultHandler as requested at: https://github.com/kataras/iris/issues/1465
Former-commit-id: 9d76c2f00766afd53cf6e591c25f861f179dd817
This commit is contained in:
@@ -2819,7 +2819,7 @@ func (ctx *context) ReadBody(ptr interface{}) error {
|
||||
}
|
||||
|
||||
switch ctx.GetContentTypeRequested() {
|
||||
case ContentXMLHeaderValue:
|
||||
case ContentXMLHeaderValue, ContentXMLUnreadableHeaderValue:
|
||||
return ctx.ReadXML(ptr)
|
||||
case ContentYAMLHeaderValue:
|
||||
return ctx.ReadYAML(ptr)
|
||||
|
||||
Reference in New Issue
Block a user