From 13be933a3298a7be121605ac4812f5252f1b4048 Mon Sep 17 00:00:00 2001 From: Andrea Gazzarini Date: Tue, 7 Apr 2015 15:48:35 +0200 Subject: [PATCH] [ issue # 52] : Data import Issue, mistaken JSON content type Task-Url: http://github.com/agazzarini/SolRDF/issues/issue/52 --- .../labs/solrdf/handler/update/RdfBulkUpdateRequestHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/solrdf/src/main/java/org/gazzax/labs/solrdf/handler/update/RdfBulkUpdateRequestHandler.java b/solrdf/src/main/java/org/gazzax/labs/solrdf/handler/update/RdfBulkUpdateRequestHandler.java index db8d93b..ae134f1 100644 --- a/solrdf/src/main/java/org/gazzax/labs/solrdf/handler/update/RdfBulkUpdateRequestHandler.java +++ b/solrdf/src/main/java/org/gazzax/labs/solrdf/handler/update/RdfBulkUpdateRequestHandler.java @@ -129,7 +129,7 @@ public void load( final String contentType = stream.getContentType() != null && !"application/xml".equals(stream.getContentType()) - && !"application/xml".equals(stream.getContentType()) + && !"application/json".equals(stream.getContentType()) ? stream.getContentType() : request.getParams().get(UpdateParams.ASSUME_CONTENT_TYPE);