From 110fdc1157d94f5d787a21c60163681767fdd6c4 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 9 Jan 2024 13:13:23 +0300 Subject: more strict constructor of MHttpRequest to avoid quirks --- plugins/PasteIt/src/PasteToWeb.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'plugins/PasteIt') diff --git a/plugins/PasteIt/src/PasteToWeb.cpp b/plugins/PasteIt/src/PasteToWeb.cpp index 5fdfc7afec..cac74b80de 100644 --- a/plugins/PasteIt/src/PasteToWeb.cpp +++ b/plugins/PasteIt/src/PasteToWeb.cpp @@ -426,8 +426,7 @@ char *PasteToWeb::SendToWeb(char *url, std::map &heade WideCharToMultiByte(CP_UTF8, 0, content.c_str(), -1, contentBytes, cbLen, nullptr, nullptr); --cbLen; - MHttpRequest nlhr; - nlhr.requestType = REQUEST_POST; + MHttpRequest nlhr(REQUEST_POST); nlhr.flags = NLHRF_NODUMPSEND | NLHRF_DUMPASTEXT | NLHPIF_HTTP11; nlhr.m_szUrl = url; nlhr.SetData(contentBytes, cbLen); -- cgit v1.2.3