Skip to content

Commit

Permalink
fix content-encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
hggq committed Aug 30, 2024
1 parent bb6867f commit 602d3e2
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions vendor/httpserver/src/server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1745,15 +1745,10 @@ asio::awaitable<void> httpserver::http2loop(std::shared_ptr<httppeer> peer)
{
DEBUG_LOG("htttp2 pool in");
peer->parse_session();
peer->status(200);

peer->type("text/html; charset=utf-8");
// http_clientrun(peer);
//////////////
peer->linktype = 0;

peer->status(200);
peer->content_type.clear();
peer->type("text/html; charset=utf-8");
peer->linktype = 0;
peer->etag.clear();

sendtype = co_await co_user_task(peer);
Expand Down

0 comments on commit 602d3e2

Please sign in to comment.