Skip to content

Commit

Permalink
Merge pull request #66 from eduNEXT/and/PE-102
Browse files Browse the repository at this point in the history
Remove backslashes from url
  • Loading branch information
ericfab179 authored Dec 10, 2018
2 parents 6c8c241 + 7873ce0 commit 1659b91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rocketc/api_rocket_chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def list_all_groups(self, user_id, auth_token, **kwargs):
"""Get a list of groups"""
url_path = "groups.list"
payload = kwargs
url = "/".join([self.server_url, self.API_path, url_path])
url = "{}{}{}".format(self.server_url, self.API_path, url_path)

headers = {"X-User-Id": user_id, "X-Auth-Token": auth_token}

Expand Down Expand Up @@ -183,6 +183,6 @@ def logout_user(self, user_id, login_token):
"""
url_path = "logout"
headers = {"X-Auth-Token": login_token, "X-User-Id": user_id}
url = "{}/{}/{}".format(self.server_url, self.API_path, url_path)
url = "{}{}{}".format(self.server_url, self.API_path, url_path)
response = requests.get(url=url, headers=headers)
return handle_response("logout_user", response, user_id=user_id)

0 comments on commit 1659b91

Please sign in to comment.