Fix unused parameter warning in win_http_transport.cpp.
This commit is contained in:
parent
f36e749c88
commit
7cf7753ae4
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user