summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/SkypeWeb')
-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"))