diff options
Diffstat (limited to 'src/leap/soledad/server')
-rw-r--r-- | src/leap/soledad/server/_streaming_resource.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/leap/soledad/server/_streaming_resource.py b/src/leap/soledad/server/_streaming_resource.py index 9805bb7e..18e67401 100644 --- a/src/leap/soledad/server/_streaming_resource.py +++ b/src/leap/soledad/server/_streaming_resource.py @@ -54,8 +54,9 @@ class StreamingResource(Resource): assert interfaces.IBlobsBackend.providedBy(self._handler) def render_POST(self, request): - user, namespace = request.postpath - db = self.factory.open_database(user) + user = request.postpath[0] + namespace = request.args.get('namespace', ['default'])[0] + db = self._handler raw_content = request.content.read() blob_ids = json.loads(raw_content) for blob_id in blob_ids: |