fixed content-type indication in http upload

This commit is contained in:
Daniel Gultsch 2015-09-19 17:29:33 +02:00
parent efc8fc5353
commit 069ddddbc1

View file

@ -262,7 +262,7 @@ public class IqGenerator extends AbstractGenerator {
request.addChild("filename").setContent(file.getName());
request.addChild("size").setContent(String.valueOf(file.getExpectedSize()));
if (mime != null) {
request.addChild("content-type", mime);
request.addChild("content-type").setContent(mime);
}
return packet;
}