summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2020-04-19 17:23:55 +0300
committerGeorge Hazan <ghazan@miranda.im>2020-04-19 17:23:55 +0300
commitbddfbe34b81f5c1f1501f9be02aba36eb1c65d17 (patch)
tree49561eb0bd94fb6b93ef9658661c8f724c5df777 /protocols/SkypeWeb/src
parentadab2df88f8f91fe499aaeaa7592ccc17708f3a0 (diff)
fix for error code 301 in Skype login
Diffstat (limited to 'protocols/SkypeWeb/src')
-rw-r--r--protocols/SkypeWeb/src/skype_login.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/protocols/SkypeWeb/src/skype_login.cpp b/protocols/SkypeWeb/src/skype_login.cpp
index f87a9fb05a..012507684e 100644
--- a/protocols/SkypeWeb/src/skype_login.cpp
+++ b/protocols/SkypeWeb/src/skype_login.cpp
@@ -130,7 +130,13 @@ void CSkypeProto::OnEndpointCreated(const NETLIBHTTPREQUEST *response)
return;
}
- if (response->resultCode != 201) {
+ switch (response->resultCode) {
+ case 200:
+ case 201: // ok, endpoint created
+ case 301: // redirect
+ break;
+
+ default:
if (response->resultCode == 401) {
if (auto *szStatus = Netlib_GetHeader(response, "StatusText"))
if (!strstr(szStatus, "SkypeTokenExpired"))