From: Badlop Date: Fri, 6 Mar 2015 11:40:48 +0000 (+0100) Subject: Fix: default_host is forgotten between consecutive HTTP requests (#416) X-Git-Tag: 15.03~41 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f18ce9564cc790abc67e40194aef64325d0fcec4;p=ejabberd Fix: default_host is forgotten between consecutive HTTP requests (#416) --- diff --git a/src/ejabberd_http.erl b/src/ejabberd_http.erl index b624bf447..c1ab5c6cd 100644 --- a/src/ejabberd_http.erl +++ b/src/ejabberd_http.erl @@ -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.