Skip to content

Commit

Permalink
Update bugs.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Barenboim authored Jan 22, 2025
1 parent 8bbdc18 commit f70ce7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/bugs.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ void f()
void f();
{
auto *task = WFTaskFactory::create_http_task("https://sogou/index.html", 0, 0, nullptr);
static_cast<WFClientTask<protocol::HttpRequest, protocol::HttpResponse> *>(task)->set_prepare([](WFHttpTask *task){
task->set_prepare([](WFHttpTask *task){
auto *t = static_cast<WFComplexClientTask<protocol::HttpRequest, protocol::HttpResponse> *>(task);
task->get_req()->set_header_pair("Host", t->get_current_uri()->host); // 这里得到实际uri里的host。
});
Expand Down

0 comments on commit f70ce7b

Please sign in to comment.