@@ -59,7 +59,8 @@ class URL {
59
59
urlComp_.dwUrlPathLength = (DWORD)-1 ;
60
60
urlComp_.dwExtraInfoLength = (DWORD)-1 ;
61
61
62
- if (WinHttpCrackUrl (url_.c_str (), url_.length (), 0 , &urlComp_) == FALSE ) {
62
+ if (WinHttpCrackUrl (url_.c_str (), static_cast <DWORD>(url_.length ()), 0 ,
63
+ &urlComp_) == FALSE ) {
63
64
DWORD err = GetLastError ();
64
65
callback (" WinHttpCrackUrl Error: " + error_message (err));
65
66
return ;
@@ -304,7 +305,7 @@ class HTTPClient {
304
305
callback_ (" WinHttpQueryHeaders Error: " + error_message (err));
305
306
return ;
306
307
}
307
- status_ = dwStatusCode;
308
+ status_ = static_cast < uint16_t >( dwStatusCode) ;
308
309
}
309
310
310
311
auto capture_headers () -> void {
@@ -391,8 +392,8 @@ class HTTPClient {
391
392
body_ << data;
392
393
}
393
394
394
- static auto WinHttpStatusCallback (HINTERNET hInternet, DWORD_PTR dwContext ,
395
- DWORD dwInternetStatus,
395
+ static auto WinHttpStatusCallback (HINTERNET /* hInternet */ ,
396
+ DWORD_PTR dwContext, DWORD dwInternetStatus,
396
397
LPVOID lpvStatusInformation,
397
398
DWORD dwStatusInformationLength) -> void {
398
399
assert (dwContext);
0 commit comments