aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBadlop <badlop@process-one.net>2016-11-21 12:06:11 +0100
committerBadlop <badlop@process-one.net>2016-11-21 12:06:11 +0100
commitc5e7b4738f6e2f2bf21da8530ebc4c9887cf1e44 (patch)
treed5afba88e436e051a72c7297d26acd4f0278e366
parentMerge branch 'master' of github.com:processone/ejabberd (diff)
Fix handling mod_http_upload disco#info queries: need decoded elements
As reported in https://www.ejabberd.im/forum/28605/ejabberd-modhttpupload-error-405-not-allowed
-rw-r--r--src/mod_http_upload.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mod_http_upload.erl b/src/mod_http_upload.erl
index 6ad18531c..1abde4f5b 100644
--- a/src/mod_http_upload.erl
+++ b/src/mod_http_upload.erl
@@ -360,7 +360,8 @@ handle_cast(Request, State) ->
-spec handle_info(timeout | _, state()) -> {noreply, state()}.
-handle_info({route, From, To, #iq{} = IQ}, State) ->
+handle_info({route, From, To, #iq{} = Packet}, State) ->
+ IQ = xmpp:decode_els(Packet),
{Reply, NewState} = case process_iq(From, IQ, State) of
R when is_record(R, iq) ->
{R, State};