summaryrefslogtreecommitdiff
path: root/plugins/PasteIt/src/PasteToWeb.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-01-04 11:24:49 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-01-04 11:24:49 +0300
commit2b6d50f7fdfaca84c3ee82909800ad67d2e99bdc (patch)
tree0fa8e6a2bb01de68127d9e45c27978fb43e267c3 /plugins/PasteIt/src/PasteToWeb.cpp
parent9ae82271f8dc01e32df1c76cfec64771bc5ee6d0 (diff)
NETLIBHTTPREQUEST::cbSize = old unused field removed
Diffstat (limited to 'plugins/PasteIt/src/PasteToWeb.cpp')
-rw-r--r--plugins/PasteIt/src/PasteToWeb.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/PasteIt/src/PasteToWeb.cpp b/plugins/PasteIt/src/PasteToWeb.cpp
index a350ca3bbb..9d1ad7ac5f 100644
--- a/plugins/PasteIt/src/PasteToWeb.cpp
+++ b/plugins/PasteIt/src/PasteToWeb.cpp
@@ -431,9 +431,9 @@ char *PasteToWeb::SendToWeb(char *url, std::map<std::string, std::string> &heade
++nHeaders;
}
- NETLIBHTTPREQUEST nlhr = { 0 };
NETLIBHTTPHEADER *httpHeaders = new NETLIBHTTPHEADER[nHeaders];
- nlhr.cbSize = sizeof(nlhr);
+
+ NETLIBHTTPREQUEST nlhr = { 0 };
nlhr.requestType = REQUEST_POST;
nlhr.flags = NLHRF_NODUMPSEND | NLHRF_DUMPASTEXT | NLHPIF_HTTP11;
nlhr.szUrl = url;