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 b4b34e5 commit 4ae57f1Copy full SHA for 4ae57f1
onvif/zeep_aiohttp.py
@@ -165,13 +165,6 @@ async def _post(
165
headers.setdefault("User-Agent", f"Zeep/{get_version()}")
166
headers.setdefault("Content-Type", 'text/xml; charset="utf-8"')
167
168
- # Determine timeout
169
- timeout = self.operation_timeout or self.timeout
170
- if timeout:
171
- client_timeout = ClientTimeout(total=timeout)
172
- else:
173
- client_timeout = None
174
-
175
# Handle both str and bytes
176
if isinstance(message, str):
177
data = message.encode("utf-8")
@@ -184,7 +177,7 @@ async def _post(
184
data=data,
185
178
headers=headers,
186
179
proxy=self.proxy,
187
- timeout=client_timeout,
180
+ timeout=self._client_timeout,
188
181
)
189
182
response.raise_for_status()
190
183
0 commit comments