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
This commit is contained in:
Badlop 2016-11-21 12:06:11 +01:00
parent e6365979bd
commit c5e7b4738f
1 changed files with 2 additions and 1 deletions

View File

@ -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};