镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content
This repository was archived by the owner on Jun 1, 2026. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions Release/src/http/client/http_client_asio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2149,12 +2149,13 @@ pplx::task<http_response> asio_client::propagate(http_request request)
// Use a task to externally signal the final result and completion of the task.
auto result_task = pplx::create_task(context->m_request_completion);

if (client_config().max_redirects() > 0)
result_task = result_task.then(http_redirect_follower(client_config(), request));

// Asynchronously send the response with the HTTP client implementation.
this->async_send_request(context);

return client_config().max_redirects() > 0
? result_task.then(http_redirect_follower(client_config(), request))
: result_task;
return result_task;
}
} // namespace details
} // namespace client
Expand Down