refactor: remove stray .c_str()
calls for absl::StrFormat()
(#47576)
refactor: remove stray .c_str() calls for absl::StrFormat() StrFormat() understands std::string, std::string_view Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Charles Kerr <charles@charleskerr.com>
This commit is contained in:
parent
e90282d57a
commit
33d23f5e00
10 changed files with 27 additions and 34 deletions
|
@ -142,8 +142,7 @@ void ProxyingWebSocket::OnConnectionEstablished(
|
|||
base::MakeRefCounted<net::HttpResponseHeaders>(absl::StrFormat(
|
||||
"HTTP/%d.%d %d %s", handshake_response_->http_version.major_value(),
|
||||
handshake_response_->http_version.minor_value(),
|
||||
handshake_response_->status_code,
|
||||
handshake_response_->status_text.c_str()));
|
||||
handshake_response_->status_code, handshake_response_->status_text));
|
||||
for (const auto& header : handshake_response_->headers)
|
||||
response_->headers->AddHeader(header->name, header->value);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue