diff options
Diffstat (limited to 'server/src')
-rw-r--r-- | server/src/leap/soledad/server/_blobs.py | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/server/src/leap/soledad/server/_blobs.py b/server/src/leap/soledad/server/_blobs.py index e90c6672..d5476aae 100644 --- a/server/src/leap/soledad/server/_blobs.py +++ b/server/src/leap/soledad/server/_blobs.py @@ -189,21 +189,15 @@ class BlobsResource(resource.Resource): def render_GET(self, request): logger.info("http get: %s" % request.path) - user, blob_id = self._split_path(request.path) + user, blob_id = request.postpath self._handler.tag_header(user, blob_id, request) return self._handler.read_blob(user, blob_id, request) def render_PUT(self, request): logger.info("http put: %s" % request.path) - user, blob_id = self._split_path(request.path) + user, blob_id = request.postpath return self._handler.write_blob(user, blob_id, request) - def _split_path(self, blob_id): - # FIXME catch errors here - parts = blob_id.split('/') - _, user, blobname = parts - return user, blobname - # provide a configured instance of the resource _config = get_config() |