We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c3e9e6 commit ac38f32Copy full SHA for ac38f32
1 file changed
src/adguardhome/adguardhome.py
@@ -131,10 +131,11 @@ async def request(
131
self._session = aiohttp.ClientSession()
132
self._close_session = True
133
134
+ skip_auto_headers = None
135
+ if data is None and json_data is None:
136
+ skip_auto_headers = {"Content-Type"}
137
+
138
try:
- skip_auto_headers = None
- if data is None:
- skip_auto_headers = {"Content-Type"}
139
async with async_timeout.timeout(self.request_timeout):
140
response = await self._session.request(
141
method,
0 commit comments