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()))); } }