mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
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:
parent
e6365979bd
commit
c5e7b4738f
@ -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};
|
||||
|
Loading…
Reference in New Issue
Block a user