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 --- protocols/Twitter/src/utility.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'protocols/Twitter') diff --git a/protocols/Twitter/src/utility.cpp b/protocols/Twitter/src/utility.cpp index 7e853b8a32..c46c146390 100644 --- a/protocols/Twitter/src/utility.cpp +++ b/protocols/Twitter/src/utility.cpp @@ -71,8 +71,7 @@ void CTwitterProto::ShowPopup(const char *text, int Error) bool save_url(HNETLIBUSER hNetlib, const CMStringA &url, const CMStringW &filename) { - MHttpRequest req; - req.requestType = REQUEST_GET; + MHttpRequest req(REQUEST_GET); req.flags = NLHRF_HTTP11 | NLHRF_REDIRECT; req.m_szUrl = const_cast(url.c_str()); -- cgit v1.2.3