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


##########
src/proxy/http/HttpSM.cc:
##########
@@ -5193,9 +5193,8 @@ HttpSM::get_outbound_sni() const
 
   if (policy.empty() || policy == "host"_tv) {
     // By default the host header field value is used for the SNI.
-    int         len;
-    char const *ptr = t_state.hdr_info.server_request.host_get(&len);
-    zret.assign(ptr, len);
+    auto host{t_state.hdr_info.server_request.host_get()};
+    zret.assign(host.data(), static_cast<int>(host.length()));

Review Comment:
   Thanks! Fixed in 
[9e31e96](https://github.com/apache/trafficserver/pull/12091/commits/9e31e96013a96779e3963a2dff9cf764da017554)



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