From f70ce7b0f3260de5e4fb9b25c720799cc285e877 Mon Sep 17 00:00:00 2001 From: xiehan <52160700+Barenboim@users.noreply.github.com> Date: Wed, 22 Jan 2025 21:58:01 +0800 Subject: [PATCH] Update bugs.md --- docs/bugs.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/bugs.md b/docs/bugs.md index f057de7b93..a096ae172c 100644 --- a/docs/bugs.md +++ b/docs/bugs.md @@ -26,7 +26,7 @@ void f() void f(); { auto *task = WFTaskFactory::create_http_task("https://sogou/index.html", 0, 0, nullptr); - static_cast *>(task)->set_prepare([](WFHttpTask *task){ + task->set_prepare([](WFHttpTask *task){ auto *t = static_cast *>(task); task->get_req()->set_header_pair("Host", t->get_current_uri()->host); // 这里得到实际uri里的host。 });