Skip to content

Commit

Permalink
fix: del output
Browse files Browse the repository at this point in the history
  • Loading branch information
helintongh committed Apr 18, 2024
1 parent 7e6268f commit 2d48cfc
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions include/cinatra/coro_http_client.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -354,15 +354,11 @@ class coro_http_client : public std::enable_shared_from_this<coro_http_client> {
#ifdef CINATRA_ENABLE_GZIP
if (enable_ws_deflate_) {
for (auto c : data.resp_headers) {
std::cout << c.name << " value is: " << c.value << std::endl;
if (c.name == "Sec-WebSocket-Extensions") {
std::cout << "have extensions\n";
if (c.value.find("permessage-deflate;") != std::string::npos) {
std::cout << "support deflate extensions\n";
is_server_support_ws_deflate_ = true;
}
else {
std::cout << "not support deflate extensions\n";
is_server_support_ws_deflate_ = false;
}
break;
Expand Down

0 comments on commit 2d48cfc

Please sign in to comment.