diff options
author | George Hazan <ghazan@miranda.im> | 2017-02-06 18:09:28 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-02-06 18:09:28 +0300 |
commit | 672548110a740feaeccf83a91f340f59738419a6 (patch) | |
tree | 989b1e36cd48f624f5c8c4570f54924dce69edc7 /protocols/Discord/src/http.cpp | |
parent | a99addebf1ea42d4031e52a84c4576355e3d8365 (diff) |
Discord: file transfer succeeded
Diffstat (limited to 'protocols/Discord/src/http.cpp')
-rw-r--r-- | protocols/Discord/src/http.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/protocols/Discord/src/http.cpp b/protocols/Discord/src/http.cpp index 72a6db3915..fafbfcc354 100644 --- a/protocols/Discord/src/http.cpp +++ b/protocols/Discord/src/http.cpp @@ -86,8 +86,10 @@ AsyncHttpRequest::~AsyncHttpRequest() void AsyncHttpRequest::AddHeader(LPCSTR szName, LPCSTR szValue) { for (int i = 0; i < headersCount; i++) - if (!mir_strcmp(headers[i].szName, szName)) + if (!mir_strcmp(headers[i].szName, szName)) { + replaceStr(headers[i].szValue, szValue); return; + } headers = (NETLIBHTTPHEADER*)mir_realloc(headers, sizeof(NETLIBHTTPHEADER)*(headersCount + 1)); headers[headersCount].szName = mir_strdup(szName); |