Skip to content

Commit

Permalink
Merge pull request #10 from AndrewSergienko/develop
Browse files Browse the repository at this point in the history
fix headers
  • Loading branch information
andiserg authored Aug 8, 2023
2 parents 2209845 + 83225ff commit dfb5462
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -133,3 +133,4 @@ dmypy.json
/pytest.ini
/docker-compose.yml
/.env.dev
/nginx.conf
2 changes: 1 addition & 1 deletion src/adapters.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ async def download_and_save_file(
async def upload_file(
self, server: Server, file_info: FileInfo, chunk_iterator
) -> dict:
headers = {"FILE_NAME": f"{file_info.name}.{file_info.file_type}"}
headers = {"FILE-NAME": f"{file_info.name}.{file_info.file_type}"}
async with ClientSession(headers=headers) as session:
async with session.put(f"{server.url}/files/", data=chunk_iterator) as resp:
return {"server": server, "status": resp.status}
Expand Down

0 comments on commit dfb5462

Please sign in to comment.