Skip to content

Commit

Permalink
fix: add required Upload-Length header for upload resume
Browse files Browse the repository at this point in the history
  • Loading branch information
Dogfalo authored and playpauseandstop committed Mar 24, 2020
1 parent d2bfb76 commit 3f39f89
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions aiohttp_tus/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ async def resource_details(request: web.Request) -> web.Response:
**constants.BASE_HEADERS,
constants.HEADER_CACHE_CONTROL: "no-store",
constants.HEADER_UPLOAD_OFFSET: str(resource.offset),
constants.HEADER_UPLOAD_LENGTH: str(resource.file_size),
},
)

Expand Down

0 comments on commit 3f39f89

Please sign in to comment.