mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-06-17 08:14:38 +00:00
[fd/mhtml] Fix storyboard content-length calculation (#13998)
Authored by: Masterjun3
This commit is contained in:
parent
b23046bbc8
commit
8902f6ba8c
@ -119,7 +119,7 @@ body > figure > img {
|
||||
fragments=fragments,
|
||||
frag_boundary=frag_boundary,
|
||||
title=title,
|
||||
)
|
||||
).encode()
|
||||
|
||||
ctx['dest_stream'].write((
|
||||
'MIME-Version: 1.0\r\n'
|
||||
@ -135,7 +135,7 @@ body > figure > img {
|
||||
'Content-Type: text/html; charset=utf-8\r\n'
|
||||
f'Content-Length: {len(stub)}\r\n'
|
||||
'\r\n'
|
||||
f'{stub}\r\n').encode())
|
||||
).encode() + stub + b'\r\n')
|
||||
extra_state['header_written'] = True
|
||||
|
||||
for i, fragment in enumerate(fragments):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user