diff options
Diffstat (limited to '')
-rw-r--r-- | pyfunkwhale/client.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pyfunkwhale/client.py b/pyfunkwhale/client.py index 49df688..c905c57 100644 --- a/pyfunkwhale/client.py +++ b/pyfunkwhale/client.py @@ -2,6 +2,7 @@ # -*- conding: utf-8 -*- import json +import re from time import time from requests_oauthlib import OAuth2Session from requests.models import Response @@ -98,6 +99,8 @@ class Client(object): call = getattr(self.oauth_client, method) + endpoint = re.sub(r'^\/', '', endpoint) + r = call(self.domain + '/api/v1/' + endpoint, headers=headers, params=params, data=data) |