From 224f349857889d4ac8493cce0008eb51a2b7cb9b Mon Sep 17 00:00:00 2001 From: Karl Wright Date: Thu, 29 Jun 2017 04:58:51 -0400 Subject: [PATCH] SOLR-10973: Use the correct constructor for InputStreamBody. --- .../java/org/apache/solr/client/solrj/impl/HttpSolrClient.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/solr/solrj/src/java/org/apache/solr/client/solrj/impl/HttpSolrClient.java b/solr/solrj/src/java/org/apache/solr/client/solrj/impl/HttpSolrClient.java index c1e95763ea1..6ea42016cfc 100644 --- a/solr/solrj/src/java/org/apache/solr/client/solrj/impl/HttpSolrClient.java +++ b/solr/solrj/src/java/org/apache/solr/client/solrj/impl/HttpSolrClient.java @@ -421,7 +421,7 @@ public class HttpSolrClient extends SolrClient { parts.add(new FormBodyPart(name, new InputStreamBody( content.getStream(), - contentType, + ContentType.parse(contentType), content.getName()))); } }