mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-28 17:38:54 +01:00
Make sure that addr_re is always initialized when creating http state
This commit is contained in:
parent
c15d230a57
commit
6aab450c16
@ -309,19 +309,22 @@ process_header(State, Data) ->
|
|||||||
trail = State3#state.trail,
|
trail = State3#state.trail,
|
||||||
options = State#state.options,
|
options = State#state.options,
|
||||||
default_host = State#state.default_host,
|
default_host = State#state.default_host,
|
||||||
request_handlers = State#state.request_handlers};
|
request_handlers = State#state.request_handlers,
|
||||||
|
addr_re = State#state.addr_re};
|
||||||
_ ->
|
_ ->
|
||||||
#state{end_of_request = true,
|
#state{end_of_request = true,
|
||||||
trail = State3#state.trail,
|
trail = State3#state.trail,
|
||||||
options = State#state.options,
|
options = State#state.options,
|
||||||
default_host = State#state.default_host,
|
default_host = State#state.default_host,
|
||||||
request_handlers = State#state.request_handlers}
|
request_handlers = State#state.request_handlers,
|
||||||
|
addr_re = State#state.addr_re}
|
||||||
end;
|
end;
|
||||||
_ ->
|
_ ->
|
||||||
#state{end_of_request = true,
|
#state{end_of_request = true,
|
||||||
options = State#state.options,
|
options = State#state.options,
|
||||||
default_host = State#state.default_host,
|
default_host = State#state.default_host,
|
||||||
request_handlers = State#state.request_handlers}
|
request_handlers = State#state.request_handlers,
|
||||||
|
addr_re = State#state.addr_re}
|
||||||
end.
|
end.
|
||||||
|
|
||||||
add_header(Name, Value, State)->
|
add_header(Name, Value, State)->
|
||||||
|
Loading…
Reference in New Issue
Block a user