From 2b6d50f7fdfaca84c3ee82909800ad67d2e99bdc Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 4 Jan 2024 11:24:49 +0300 Subject: NETLIBHTTPREQUEST::cbSize = old unused field removed --- protocols/WhatsApp/src/avatars.cpp | 1 - protocols/WhatsApp/src/utils.cpp | 1 - 2 files changed, 2 deletions(-) (limited to 'protocols/WhatsApp/src') diff --git a/protocols/WhatsApp/src/avatars.cpp b/protocols/WhatsApp/src/avatars.cpp index 7be5b1d412..39e521eff3 100644 --- a/protocols/WhatsApp/src/avatars.cpp +++ b/protocols/WhatsApp/src/avatars.cpp @@ -131,7 +131,6 @@ void WhatsAppProto::ServerFetchAvatar(const char *jid) bool CMPlugin::SaveFile(const char *pszUrl, PROTO_AVATAR_INFORMATION &ai) { NETLIBHTTPREQUEST req = {}; - req.cbSize = sizeof(req); req.flags = NLHRF_NODUMP | NLHRF_PERSISTENT | NLHRF_SSL | NLHRF_HTTP11 | NLHRF_REDIRECT; req.requestType = REQUEST_GET; req.szUrl = (char*)pszUrl; diff --git a/protocols/WhatsApp/src/utils.cpp b/protocols/WhatsApp/src/utils.cpp index c49821e21e..3d3650c043 100644 --- a/protocols/WhatsApp/src/utils.cpp +++ b/protocols/WhatsApp/src/utils.cpp @@ -522,7 +522,6 @@ MBinBuffer WhatsAppProto::DownloadEncryptedFile(const char *url, const ProtobufC NETLIBHTTPHEADER headers[1] = {{"Origin", "https://web.whatsapp.com"}}; NETLIBHTTPREQUEST req = {}; - req.cbSize = sizeof(req); req.requestType = REQUEST_GET; req.szUrl = (char*)url; req.headersCount = _countof(headers); -- cgit v1.2.3