diff options
author | Victor Shyba <victor1984@riseup.net> | 2017-07-24 18:11:14 -0300 |
---|---|---|
committer | Victor Shyba <victor1984@riseup.net> | 2017-08-03 05:33:01 -0300 |
commit | 841db9f072401f2b6f40873b35c733723a54de36 (patch) | |
tree | db64800de5858aca58f42547e4086a79274e7dfd /src/leap/soledad/server | |
parent | 8fc244cb0946f46ba9aff019b70568d08a226b29 (diff) |
[bug] make download namespace-aware
Diffstat (limited to 'src/leap/soledad/server')
-rw-r--r-- | src/leap/soledad/server/_blobs.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/leap/soledad/server/_blobs.py b/src/leap/soledad/server/_blobs.py index 6afd802c..b6323906 100644 --- a/src/leap/soledad/server/_blobs.py +++ b/src/leap/soledad/server/_blobs.py @@ -68,7 +68,7 @@ class FilesystemBlobsBackend(object): self.path = blobs_path def read_blob(self, user, blob_id, request, namespace=''): - logger.info('reading blob: %s - %s' % (user, blob_id)) + logger.info('reading blob: %s - %s@%s' % (user, blob_id, namespace)) path = self._get_path(user, blob_id, namespace) logger.debug('blob path: %s' % path) _file = static.File(path, defaultType='application/octet-stream') @@ -249,7 +249,7 @@ class BlobsResource(resource.Resource): filter_flag=filter_flag) if 'only_flags' in request.args: return self._handler.get_flags(user, blob_id, request, namespace) - self._handler.add_tag_header(user, blob_id, request) + self._handler.add_tag_header(user, blob_id, request, namespace) return self._handler.read_blob(user, blob_id, request, namespace) def render_DELETE(self, request): |