1
0
mirror of https://github.com/apache/lucene.git synced 2025-02-16 23:15:46 +00:00

SOLR-2020: fix FormBodyPart - The 2nd param is the contentType, not the name

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1328536 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Ryan McKinley 2012-04-20 22:41:43 +00:00
parent 5ae1d1c1f5
commit 728bf1a914

@ -290,7 +290,11 @@ public class HttpSolrServer extends SolrServer {
if (isMultipart) {
for (ContentStream content : streams) {
parts.add(new FormBodyPart(content.getName(), new InputStreamBody(content.getStream(), content.getName())));
parts.add(new FormBodyPart(content.getName(),
new InputStreamBody(
content.getStream(),
content.getContentType(),
content.getName())));
}
}