mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-09 14:34:43 +00:00
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…
x
Reference in New Issue
Block a user