You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by sh...@apache.org on 2017/07/04 01:23:35 UTC
[15/53] [abbrv] lucene-solr:feature/autoscaling: SOLR-10973: Use the
correct constructor for InputStreamBody.
SOLR-10973: Use the correct constructor for InputStreamBody.
Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/224f3498
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/224f3498
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/224f3498
Branch: refs/heads/feature/autoscaling
Commit: 224f349857889d4ac8493cce0008eb51a2b7cb9b
Parents: 3291ef8
Author: Karl Wright <Da...@gmail.com>
Authored: Thu Jun 29 04:58:51 2017 -0400
Committer: Karl Wright <Da...@gmail.com>
Committed: Thu Jun 29 04:58:51 2017 -0400
----------------------------------------------------------------------
.../src/java/org/apache/solr/client/solrj/impl/HttpSolrClient.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/224f3498/solr/solrj/src/java/org/apache/solr/client/solrj/impl/HttpSolrClient.java
----------------------------------------------------------------------
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 c1e9576..6ea4201 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())));
}
}