SOLR-10973: Use the correct constructor for InputStreamBody.

This commit is contained in:
Karl Wright 2017-06-29 04:58:51 -04:00
parent 3291ef884d
commit 224f349857
1 changed files with 1 additions and 1 deletions

View File

@ -421,7 +421,7 @@ public class HttpSolrClient extends SolrClient {
parts.add(new FormBodyPart(name,
new InputStreamBody(
content.getStream(),
contentType,
ContentType.parse(contentType),
content.getName())));
}
}