diff --git a/src/proxy/http/HttpSM.cc b/src/proxy/http/HttpSM.cc index 5a3578fbf16..2ebee117824 100644 --- a/src/proxy/http/HttpSM.cc +++ b/src/proxy/http/HttpSM.cc @@ -2062,7 +2062,7 @@ HttpSM::state_read_server_response_header(int event, void *data) t_state.api_next_action = HttpTransact::StateMachineAction_t::API_READ_RESPONSE_HDR; // if exceeded limit deallocate postdata buffers and disable redirection - if (!(enable_redirection && (redirection_tries < t_state.txn_conf->number_of_redirections))) { + if (!(enable_redirection && (redirection_tries <= t_state.txn_conf->number_of_redirections))) { this->disable_redirect(); }