diff options
author | Daniel Gultsch <daniel@gultsch.de> | 2015-09-19 17:29:33 +0200 |
---|---|---|
committer | Daniel Gultsch <daniel@gultsch.de> | 2015-09-19 17:29:33 +0200 |
commit | 069ddddbc14a83b0b466a4d62033d17bb322b155 (patch) | |
tree | 2253b767e1b20c975a615bacbb954f29e6089b7c /src | |
parent | efc8fc5353fefca22e41f0ce25fc167fc287bd3f (diff) |
fixed content-type indication in http upload
Diffstat (limited to '')
-rw-r--r-- | src/main/java/eu/siacs/conversations/generator/IqGenerator.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/eu/siacs/conversations/generator/IqGenerator.java b/src/main/java/eu/siacs/conversations/generator/IqGenerator.java index 835b9bf6..42c57b24 100644 --- a/src/main/java/eu/siacs/conversations/generator/IqGenerator.java +++ b/src/main/java/eu/siacs/conversations/generator/IqGenerator.java @@ -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; } |