Skip to content

Commit

Permalink
fix(urls): correctly join urls
Browse files Browse the repository at this point in the history
  • Loading branch information
millerjs committed Aug 17, 2015
1 parent 7337f9f commit ef04dfa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gdc_client/download/client.py
Expand Up @@ -95,8 +95,8 @@ class GDCHTTPDownloadClient(GDCDownloadMixin, HTTPClient):

def __init__(self, uri, download_related_files=True,
download_annotations=True, *args, **kwargs):
self.base_uri = uri
self.data_uri = uri + 'data'
self.base_uri = self.fix_uri(uri)
self.data_uri = urlparse.urljoin(self.base_uri, 'data/')
self.related_files = download_related_files
self.annotations = download_annotations
super(GDCDownloadMixin, self).__init__(self.data_uri, *args, **kwargs)
Expand All @@ -109,7 +109,7 @@ def __init__(self, remote_uri, download_related_files=True,

remote_uri = self.fix_uri(remote_uri)
self.base_uri = remote_uri
self.data_uri = remote_uri + 'data'
self.data_uri = urlparse.urljoin(remote_uri, 'data/')
self.related_files = download_related_files
self.annotations = download_annotations

Expand Down

0 comments on commit ef04dfa

Please sign in to comment.