Skip to content

Commit

Permalink
Fixed merge conflict when cherry picking 6849595
Browse files Browse the repository at this point in the history
  • Loading branch information
rossjones committed Jul 23, 2012
1 parent a351034 commit 970c9b2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions ckan/controllers/storage.py
Expand Up @@ -265,9 +265,11 @@ def get_metadata(self, label):
url = "https://%s/%s%s" % (self.ofs.conn.server_name(), bucket, label)
else:
url = h.url_for('storage_file',
label=label,
qualified=False
)
label=label,
qualified=False)

if url.startswith('/'):
url = config.get('ckan.site_url', '') + url
if not self.ofs.exists(bucket, label):
abort(404)
metadata = self.ofs.get_metadata(bucket, label)
Expand Down

0 comments on commit 970c9b2

Please sign in to comment.