hnakamur commented on code in PR #12091:
URL: https://github.com/apache/trafficserver/pull/12091#discussion_r2008704719


##########
src/proxy/http/HttpTransact.cc:
##########
@@ -591,10 +591,9 @@ is_negative_caching_appropriate(HttpTransact::State *s)
 inline static ResolveInfo::UpstreamResolveStyle
 find_server_and_update_current_info(HttpTransact::State *s)
 {
-  int         host_len;
-  const char *host = s->hdr_info.client_request.host_get(&host_len);
+  auto host{s->hdr_info.client_request.host_get()};
 
-  if (is_localhost(host, host_len)) {
+  if (is_localhost(host.data(), static_cast<int>(host.length()))) {

Review Comment:
   Thanks! Fixed in 
[266bea6](https://github.com/apache/trafficserver/pull/12091/commits/266bea61343a55e057a74498933ecb16029eefec)



-- 
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