allow for json and xson to be parsed in content type
This commit is contained in:
parent
7c53ef1084
commit
8df704e605
|
@ -39,11 +39,11 @@ public enum XContentType {
|
|||
if (contentType == null) {
|
||||
return null;
|
||||
}
|
||||
if ("application/json".equals(contentType)) {
|
||||
if ("application/json".equals(contentType) || "json".equalsIgnoreCase(contentType)) {
|
||||
return JSON;
|
||||
}
|
||||
|
||||
if ("application/xson".equals(contentType)) {
|
||||
if ("application/xson".equals(contentType) || "xson".equalsIgnoreCase(contentType)) {
|
||||
return XSON;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue