diff --git a/src/lhttpc.app.src b/src/lhttpc.app.src index 4b1cc8a2..7cabe37a 100644 --- a/src/lhttpc.app.src +++ b/src/lhttpc.app.src @@ -29,7 +29,7 @@ %%% @end {application, lhttpc, [{description, "Lightweight HTTP Client"}, - {vsn, "1.3.0"}, + {vsn, "1.3.1"}, {modules, []}, {registered, [lhttpc_manager]}, {applications, [kernel, stdlib, ssl, crypto]}, diff --git a/src/lhttpc_client.erl b/src/lhttpc_client.erl index 0f5542f3..1b20a123 100644 --- a/src/lhttpc_client.erl +++ b/src/lhttpc_client.erl @@ -282,6 +282,7 @@ send_request(State) -> lhttpc_sock:close(Socket, Ssl), NewState = State#client_state{ socket = undefined, + proxy_setup = false, attempts = State#client_state.attempts - 1 }, send_request(NewState); @@ -457,6 +458,7 @@ read_response(State, Vsn, {StatusCode, _} = Status, Hdrs) -> lhttpc_sock:close(Socket, Ssl), NewState = State#client_state{ socket = undefined, + proxy_setup = false, attempts = State#client_state.attempts - 1 }, send_request(NewState);