mirror of
https://github.com/home-assistant/core.git
synced 2025-08-15 18:41:44 +02:00
Follow redirects in generic camera (#94931)
This commit is contained in:
@@ -200,7 +200,7 @@ class GenericCamera(Camera):
|
|||||||
try:
|
try:
|
||||||
async_client = get_async_client(self.hass, verify_ssl=self.verify_ssl)
|
async_client = get_async_client(self.hass, verify_ssl=self.verify_ssl)
|
||||||
response = await async_client.get(
|
response = await async_client.get(
|
||||||
url, auth=self._auth, timeout=GET_IMAGE_TIMEOUT
|
url, auth=self._auth, follow_redirects=True, timeout=GET_IMAGE_TIMEOUT
|
||||||
)
|
)
|
||||||
response.raise_for_status()
|
response.raise_for_status()
|
||||||
self._last_image = response.content
|
self._last_image = response.content
|
||||||
|
Reference in New Issue
Block a user