mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-08-14 08:28:29 +00:00
Fix Content-Length calculation in mhtml generation
This commit is contained in:
parent
b7de89c910
commit
ad355fdc65
@ -133,7 +133,7 @@ def real_download(self, filename, info_dict):
|
|||||||
'\r\n'
|
'\r\n'
|
||||||
f'--{frag_boundary}\r\n'
|
f'--{frag_boundary}\r\n'
|
||||||
'Content-Type: text/html; charset=utf-8\r\n'
|
'Content-Type: text/html; charset=utf-8\r\n'
|
||||||
f'Content-Length: {len(stub)}\r\n'
|
f'Content-Length: {len(stub.encode())}\r\n'
|
||||||
'\r\n'
|
'\r\n'
|
||||||
f'{stub}\r\n').encode())
|
f'{stub}\r\n').encode())
|
||||||
extra_state['header_written'] = True
|
extra_state['header_written'] = True
|
||||||
|
Loading…
Reference in New Issue
Block a user