mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-30 16:36:29 +01:00
Fix: default_host is forgotten between consecutive HTTP requests (#416)
This commit is contained in:
parent
e0228e9b7a
commit
f18ce9564c
@ -284,15 +284,18 @@ process_header(State, Data) ->
|
|||||||
true ->
|
true ->
|
||||||
#state{sockmod = SockMod, socket = Socket,
|
#state{sockmod = SockMod, socket = Socket,
|
||||||
options = State#state.options,
|
options = State#state.options,
|
||||||
|
default_host = State#state.default_host,
|
||||||
request_handlers = State#state.request_handlers};
|
request_handlers = State#state.request_handlers};
|
||||||
_ ->
|
_ ->
|
||||||
#state{end_of_request = true,
|
#state{end_of_request = true,
|
||||||
options = State#state.options,
|
options = State#state.options,
|
||||||
|
default_host = State#state.default_host,
|
||||||
request_handlers = State#state.request_handlers}
|
request_handlers = State#state.request_handlers}
|
||||||
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,
|
||||||
request_handlers = State#state.request_handlers}
|
request_handlers = State#state.request_handlers}
|
||||||
end.
|
end.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user