fixed content-type indication in http upload
This commit is contained in:
parent
efc8fc5353
commit
069ddddbc1
|
@ -262,7 +262,7 @@ public class IqGenerator extends AbstractGenerator {
|
||||||
request.addChild("filename").setContent(file.getName());
|
request.addChild("filename").setContent(file.getName());
|
||||||
request.addChild("size").setContent(String.valueOf(file.getExpectedSize()));
|
request.addChild("size").setContent(String.valueOf(file.getExpectedSize()));
|
||||||
if (mime != null) {
|
if (mime != null) {
|
||||||
request.addChild("content-type", mime);
|
request.addChild("content-type").setContent(mime);
|
||||||
}
|
}
|
||||||
return packet;
|
return packet;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue