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
1 changed files with 3 additions and 0 deletions

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.