Fix unused parameter warning in win_http_transport.cpp.

This commit is contained in:
Xiting Zhang 2025-05-15 16:21:09 -07:00 committed by Ryan Hurey
parent f36e749c88
commit 7cf7753ae4

View File

@ -1419,6 +1419,10 @@ int64_t _detail::WinHttpRequest::GetContentLength(
std::unique_ptr<RawResponse> _detail::WinHttpRequest::SendRequestAndGetResponse(
HttpMethod requestMethod)
{
// Suppress unused parameter warning (C4100).
// Keeping 'requestMethod' in the signature preserves API compatibility.
(void)requestMethod;
// First, use WinHttpQueryHeaders to obtain the size of the buffer.
// The call is expected to fail since no destination buffer is provided.
DWORD sizeOfHeaders = 0;