summaryrefslogtreecommitdiff
path: root/plugins/NewsAggregator
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2013-07-15 19:59:49 +0000
committerKirill Volinsky <mataes2007@gmail.com>2013-07-15 19:59:49 +0000
commit46d453d7fb2fc103c4eaa6e41ff00ad988b9a233 (patch)
tree013005c223aa74b0a4bd30ea222d2e50b41222e3 /plugins/NewsAggregator
parente2fc4058cc0d71e012446b84ce7bcfc936b72b47 (diff)
prepare for asking login and password when they not entered
git-svn-id: http://svn.miranda-ng.org/main/trunk@5375 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/NewsAggregator')
-rw-r--r--plugins/NewsAggregator/Src/Utils.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/NewsAggregator/Src/Utils.cpp b/plugins/NewsAggregator/Src/Utils.cpp
index 88b7a800fd..74e801c198 100644
--- a/plugins/NewsAggregator/Src/Utils.cpp
+++ b/plugins/NewsAggregator/Src/Utils.cpp
@@ -165,6 +165,10 @@ VOID GetNewsData(TCHAR *tszUrl, char **szData, HANDLE hContact, HWND hwndDlg)
(*szData)[nlhrReply->dataLength] = 0;
}
CallService(MS_NETLIB_FREEHTTPREQUESTSTRUCT, 0, (LPARAM)nlhrReply);
+ } else {
+ if (nlhr.resultCode == 401) {
+ //запросить ввести логин и пароль и снова попытаться скачать
+ }
}
mir_free(szUrl);
mir_free(nlhr.headers);