diff options
author | George Hazan <ghazan@miranda.im> | 2020-04-19 17:23:55 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2020-04-19 17:23:55 +0300 |
commit | bddfbe34b81f5c1f1501f9be02aba36eb1c65d17 (patch) | |
tree | 49561eb0bd94fb6b93ef9658661c8f724c5df777 /protocols/SkypeWeb | |
parent | adab2df88f8f91fe499aaeaa7592ccc17708f3a0 (diff) |
fix for error code 301 in Skype login
Diffstat (limited to 'protocols/SkypeWeb')
-rw-r--r-- | protocols/SkypeWeb/src/skype_login.cpp | 8 |
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"))
|