Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
javitonino committed Feb 12, 2024
1 parent 34e11fa commit cb1ea6e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion nucliadb/nucliadb/writer/api/v1/upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,8 @@ async def _tus_post(
await storage_manager.start(dm, path=path, kbid=kbid)
await dm.save()

location = f"{request['path']}/{upload_id}"
api.url_path_for
location = api.url_path_for("Upload information", kbid=kbid, upload_id=upload_id)
return Response(
status_code=201,
headers={
Expand Down
1 change: 0 additions & 1 deletion nucliadb/nucliadb/writer/tests/test_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ async def test_knowledgebox_file_tus_upload_root(writer_api, knowledgebox_writer
data = io_bytes.read(min_chunk_size)
while data != b"":
resp = await client.head(url)

assert resp.headers["Upload-Length"] == f"0"
assert resp.headers["Upload-Offset"] == f"{offset}"

Expand Down
2 changes: 1 addition & 1 deletion nucliadb/requirements.lock.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ async-timeout==4.0.3
asyncpg==0.29.0
attrs==23.2.0
backoff==2.2.1
botocore==1.29.161
botocore==1.34.40
cachetools==5.3.2
certifi==2024.2.2
cffi==1.16.0
Expand Down

0 comments on commit cb1ea6e

Please sign in to comment.