Skip to content
This repository was archived by the owner on Sep 8, 2025. It is now read-only.

Commit 66f088e

Browse files
committed
style: use lowercase headers
1 parent 2965ae7 commit 66f088e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

storage3/_async/file_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ async def upload(
172172
file_options = {}
173173
headers = {**self._client.headers, **DEFAULT_FILE_OPTIONS, **file_options}
174174
filename = path.rsplit("/", maxsplit=1)[-1]
175-
files = {"file": (filename, open(file, "rb"), headers.pop("contentType"))}
175+
files = {"file": (filename, open(file, "rb"), headers.pop("content-type"))}
176176
_path = self._get_final_path(path)
177177

178178
return await self._request(

storage3/constants.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
},
88
}
99
DEFAULT_FILE_OPTIONS = {
10-
"cacheControl": "3600",
11-
"contentType": "text/plain;charset=UTF-8",
10+
"cache-control": "3600",
11+
"content-type": "text/plain;charset=UTF-8",
1212
"x-upsert": "false",
1313
}

0 commit comments

Comments
 (0)