summaryrefslogtreecommitdiff
path: root/protocols/Teams/src/teams_http.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Teams/src/teams_http.cpp')
-rw-r--r--protocols/Teams/src/teams_http.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/protocols/Teams/src/teams_http.cpp b/protocols/Teams/src/teams_http.cpp
index 7e3e050b8d..9f90bebe71 100644
--- a/protocols/Teams/src/teams_http.cpp
+++ b/protocols/Teams/src/teams_http.cpp
@@ -28,11 +28,6 @@ AsyncHttpRequest::AsyncHttpRequest(int type, SkypeHost host, LPCSTR url, MTHttpR
case HOST_TEAMS_API: m_szUrl = TEAMS_BASE_HOST "/api/mt/beta"; break;
case HOST_CHATS: m_szUrl = TEAMS_BASE_HOST "/api/chatsvc/consumer/v1"; break;
case HOST_PRESENCE: m_szUrl = "presence." TEAMS_BASE_HOST "/v1"; break;
-
- case HOST_DEFAULT:
- AddHeader("MS-IC3-Product", "Sfl");
- m_szUrl = "msgapi." TEAMS_BASE_HOST "/v1";
- break;
}
AddHeader("User-Agent", TEAMS_USER_AGENT);
@@ -104,7 +99,6 @@ MHttpResponse* CTeamsProto::DoSend(AsyncHttpRequest *pReq)
switch (pReq->m_host) {
case HOST_CONTACTS:
- case HOST_DEFAULT:
pReq->AddAuthentication(this);
pReq->AddHeader("Accept", "application/json");
pReq->AddHeader("X-Stratus-Caller", TEAMS_CLIENTINFO_NAME);
@@ -133,6 +127,7 @@ MHttpResponse* CTeamsProto::DoSend(AsyncHttpRequest *pReq)
case HOST_CHATS:
pReq->AddAuthentication(this);
+ pReq->AddHeader("MS-IC3-Product", "Sfl");
pReq->AddHeader("Accept", "application/json");
break;