From 069ddddbc14a83b0b466a4d62033d17bb322b155 Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Sat, 19 Sep 2015 17:29:33 +0200 Subject: fixed content-type indication in http upload --- src/main/java/eu/siacs/conversations/generator/IqGenerator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/main/java/eu/siacs/conversations/generator/IqGenerator.java b/src/main/java/eu/siacs/conversations/generator/IqGenerator.java index 835b9bf6c..42c57b24f 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; } -- cgit v1.2.3