Skip to content

Commit 6241f00

Browse files
yangfankarajan1001
authored andcommitted
Fix bug in headers where Content-Type is overwritten
1 parent 2968203 commit 6241f00

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/aiooss2/http.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ def __init__( # pylint: disable=too-many-arguments
4141
else:
4242
self.headers = headers
4343

44-
self.headers["Content-Type"] = "application/octet-stream"
44+
if "Content-Type" not in self.headers:
45+
self.headers["Content-Type"] = "application/octet-stream"
4546
if "User-Agent" not in self.headers:
4647
if app_name:
4748
self.headers["User-Agent"] = USER_AGENT + "/" + app_name

0 commit comments

Comments
 (0)