25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-24 17:29:28 +01:00

Fix: default_host is forgotten between consecutive HTTP requests (#416)

This commit is contained in:
Badlop 2015-03-06 12:40:48 +01:00
parent e0228e9b7a
commit f18ce9564c

View File

@ -284,15 +284,18 @@ process_header(State, Data) ->
true ->
#state{sockmod = SockMod, socket = Socket,
options = State#state.options,
default_host = State#state.default_host,
request_handlers = State#state.request_handlers};
_ ->
#state{end_of_request = true,
options = State#state.options,
default_host = State#state.default_host,
request_handlers = State#state.request_handlers}
end;
_ ->
#state{end_of_request = true,
options = State#state.options,
default_host = State#state.default_host,
request_handlers = State#state.request_handlers}
end.