SOLR-6959: standardize XML content-type

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1651027 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Erik Hatcher 2015-01-12 02:36:30 +00:00
parent 5f1d3bd308
commit ae4734f4cf
1 changed files with 2 additions and 2 deletions

View File

@ -130,7 +130,7 @@ public class SimplePostTool {
DATA_MODES.add(DATA_MODE_WEB);
mimeMap = new HashMap<>();
mimeMap.put("xml", "text/xml");
mimeMap.put("xml", "application/xml");
mimeMap.put("csv", "text/csv");
mimeMap.put("json", "application/json");
mimeMap.put("pdf", "application/pdf");
@ -775,7 +775,7 @@ public class SimplePostTool {
type = guessType(file);
}
if(type != null) {
if(type.equals("text/xml") || type.equals("text/csv") || type.equals("application/json")) {
if(type.equals("application/xml") || type.equals("text/csv") || type.equals("application/json")) {
// Default handler
} else {
// SolrCell