diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-11-28 01:13:45 +0200 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-11-28 01:13:45 +0200 |
commit | cab1f820731a11ef4adc5791c08a9e994b4cfefc (patch) | |
tree | f08ed08faad74c2c3c7f6b881e367579f7f35ae5 | |
parent | 70c2cfd89aa333043a0bf729bd917f3e9cd11ae9 (diff) |
Don't assume that server as specified by user has trailing slash.
Change-Id: Id28aff58b1e90d6587b097725f4214559df408e0
-rwxr-xr-x | linaro-cp.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linaro-cp.py b/linaro-cp.py index db24eac..6ed3ecb 100755 --- a/linaro-cp.py +++ b/linaro-cp.py @@ -94,7 +94,7 @@ class API_v1(object): class API_v2(API_v1): def __init__(self, server, build_info, api_key): super(API_v2, self).__init__(server, build_info, api_key) - self.api_base = server + 'api/v2/publish/' + self.api_base = server + '/api/v2/publish/' def upload_file(self, url, filename): headers = ['AuthToken: ' + self.api_key] |