aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel@gultsch.de>2015-09-19 17:29:33 +0200
committerDaniel Gultsch <daniel@gultsch.de>2015-09-19 17:29:33 +0200
commit069ddddbc14a83b0b466a4d62033d17bb322b155 (patch)
tree2253b767e1b20c975a615bacbb954f29e6089b7c
parentefc8fc5353fefca22e41f0ce25fc167fc287bd3f (diff)
fixed content-type indication in http upload
-rw-r--r--src/main/java/eu/siacs/conversations/generator/IqGenerator.java2
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;
}