diff options
author | George Hazan <george.hazan@gmail.com> | 2024-01-06 13:53:13 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-01-06 13:53:13 +0300 |
commit | e1d4521c5530e7f971f15fdec358f27e563553dd (patch) | |
tree | 7f73404af7c24a43b657e216e1545bcf5da16a77 /protocols/Twitter | |
parent | 159d13282207fd1e3e1c030e1d254013f2e59de1 (diff) |
code cleaning
Diffstat (limited to 'protocols/Twitter')
-rw-r--r-- | protocols/Twitter/src/http.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/protocols/Twitter/src/http.cpp b/protocols/Twitter/src/http.cpp index 71aa265954..f228e68b2b 100644 --- a/protocols/Twitter/src/http.cpp +++ b/protocols/Twitter/src/http.cpp @@ -40,13 +40,8 @@ void CTwitterProto::Execute(AsyncHttpRequest *pReq) else pReq->AddHeader("Content-Type", "application/x-www-form-urlencoded"); pReq->AddHeader("Cache-Control", "no-cache"); } - else { - if (pReq->requestType == REQUEST_PATCH) - pReq->requestType = REQUEST_POST; - - pReq->m_szUrl.AppendChar('?'); - pReq->m_szUrl += pReq->m_szParam; - } + else if (pReq->requestType == REQUEST_PATCH) + pReq->requestType = REQUEST_POST; } // CMStringA auth(FORMAT, "%s:%s", OAUTH_CONSUMER_KEY, OAUTH_CONSUMER_SECRET); |