Skip to content
Snippets Groups Projects
Verified Commit 0772476f authored by Victor's avatar Victor
Browse files

[refactor] get namespace as an optional query arg

parent ae93f05a
Branches
Tags
1 merge request!166Streaming blobs (Related: #8809 #8810 #8773 )
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment