mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 13:47:35 +00:00
Set content length when uploading files to WebDAV (#139950)
This commit is contained in:
parent
3a8c8accfe
commit
b4794b2029
@ -171,6 +171,7 @@ class WebDavBackupAgent(BackupAgent):
|
|||||||
await open_stream(),
|
await open_stream(),
|
||||||
f"{self._backup_path}/{filename_tar}",
|
f"{self._backup_path}/{filename_tar}",
|
||||||
timeout=BACKUP_TIMEOUT,
|
timeout=BACKUP_TIMEOUT,
|
||||||
|
content_length=backup.size,
|
||||||
)
|
)
|
||||||
|
|
||||||
_LOGGER.debug(
|
_LOGGER.debug(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user