allow for json and xson to be parsed in content type

This commit is contained in:
kimchy 2010-05-11 22:40:02 +03:00
parent 7c53ef1084
commit 8df704e605
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}