From 9774c848510265651d221a2105db10768d2bb87d Mon Sep 17 00:00:00 2001 From: shongkaikai Date: Fri, 18 Jul 2025 17:03:39 +0800 Subject: [PATCH] Fix: [ATS 9.2.x: 200 response after 302 not cached] (#12369) --- proxy/http/HttpSM.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/http/HttpSM.cc b/proxy/http/HttpSM.cc index c0ba82641e1..31dc2a5c264 100644 --- a/proxy/http/HttpSM.cc +++ b/proxy/http/HttpSM.cc @@ -2144,7 +2144,7 @@ HttpSM::state_read_server_response_header(int event, void *data) t_state.api_next_action = HttpTransact::SM_ACTION_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(); }