traeak commented on code in PR #13611:
URL: https://github.com/apache/trafficserver/pull/13611#discussion_r4010213732


##########
src/proxy/http/HttpSM.cc:
##########
@@ -5279,6 +5283,18 @@ HttpSM::do_range_setup_if_necessary()
   }
 }
 
+// The URL this transaction looks up in the cache. A redirect follow looks up 
the
+// redirected URL rather than the original, unless the transaction is 
configured
+// to keep the original cache key.
+URL *
+HttpSM::cache_lookup_url()
+{
+  if (t_state.redirect_info.redirect_in_process && 
!t_state.txn_conf->redirect_use_orig_cache_key) {
+    return t_state.hdr_info.client_request.url_get();
+  }
+  return t_state.cache_info.lookup_url;
+}

Review Comment:
   addressed



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to