diff options
author | George Hazan <george.hazan@gmail.com> | 2024-01-04 11:24:49 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-01-04 11:24:49 +0300 |
commit | 2b6d50f7fdfaca84c3ee82909800ad67d2e99bdc (patch) | |
tree | 0fa8e6a2bb01de68127d9e45c27978fb43e267c3 /protocols/JabberG | |
parent | 9ae82271f8dc01e32df1c76cfec64771bc5ee6d0 (diff) |
NETLIBHTTPREQUEST::cbSize = old unused field removed
Diffstat (limited to 'protocols/JabberG')
-rw-r--r-- | protocols/JabberG/src/jabber_file.cpp | 3 | ||||
-rw-r--r-- | protocols/JabberG/src/jabber_ft.cpp | 1 | ||||
-rw-r--r-- | protocols/JabberG/src/jabber_util.cpp | 1 |
3 files changed, 0 insertions, 5 deletions
diff --git a/protocols/JabberG/src/jabber_file.cpp b/protocols/JabberG/src/jabber_file.cpp index b84560dde1..ebd33b3d93 100644 --- a/protocols/JabberG/src/jabber_file.cpp +++ b/protocols/JabberG/src/jabber_file.cpp @@ -50,7 +50,6 @@ void __cdecl CJabberProto::OfflineFileThread(OFDTHREAD *ofd) // initialize the netlib request
NETLIBHTTPREQUEST nlhr = {};
- nlhr.cbSize = sizeof(nlhr);
nlhr.requestType = REQUEST_GET;
nlhr.flags = NLHRF_HTTP11 | NLHRF_DUMPASTEXT | NLHRF_REDIRECT;
nlhr.szUrl = (char *)url;
@@ -129,7 +128,6 @@ void CJabberProto::OnReceiveOfflineFile(DB::FILE_BLOB &blob, void *pHandle) void __cdecl CJabberProto::FileReceiveHttpThread(filetransfer *ft)
{
NETLIBHTTPREQUEST req = {};
- req.cbSize = sizeof(req);
req.requestType = REQUEST_GET;
req.szUrl = ft->httpPath;
@@ -157,7 +155,6 @@ void CJabberProto::FileProcessHttpDownload(MCONTACT hContact, const char *jid, c auto *pszName = szName.c_str();
NETLIBHTTPREQUEST req = {};
- req.cbSize = sizeof(req);
req.requestType = REQUEST_HEAD;
req.szUrl = (char*)pszUrl;
diff --git a/protocols/JabberG/src/jabber_ft.cpp b/protocols/JabberG/src/jabber_ft.cpp index 2124b88a83..e0ede298da 100644 --- a/protocols/JabberG/src/jabber_ft.cpp +++ b/protocols/JabberG/src/jabber_ft.cpp @@ -694,7 +694,6 @@ LBL_Fail: NETLIBHTTPHEADER hdr[10];
NETLIBHTTPREQUEST nlhr = {};
- nlhr.cbSize = sizeof(nlhr);
nlhr.requestType = REQUEST_PUT;
nlhr.flags = NLHRF_NODUMPSEND | NLHRF_SSL | NLHRF_REDIRECT;
nlhr.szUrl = (char *)szUrl;
diff --git a/protocols/JabberG/src/jabber_util.cpp b/protocols/JabberG/src/jabber_util.cpp index 5d63b0d5a0..e018c39b40 100644 --- a/protocols/JabberG/src/jabber_util.cpp +++ b/protocols/JabberG/src/jabber_util.cpp @@ -882,7 +882,6 @@ void __cdecl CJabberProto::LoadHttpAvatars(void* param) HNETLIBCONN hHttpCon = nullptr;
for (auto &it : avs) {
NETLIBHTTPREQUEST nlhr = { 0 };
- nlhr.cbSize = sizeof(nlhr);
nlhr.requestType = REQUEST_GET;
nlhr.flags = NLHRF_HTTP11 | NLHRF_REDIRECT | NLHRF_PERSISTENT;
nlhr.szUrl = it->Url;
|