mirror of
https://github.com/webrecorder/pywb.git
synced 2025-03-24 06:59:52 +01:00
recorder: ensure warcinfo record has a content-type
This commit is contained in:
parent
7a0dd463cd
commit
0fbae1c7f8
@ -120,6 +120,7 @@ class BaseWARCWriter(object):
|
|||||||
if filename:
|
if filename:
|
||||||
headers['WARC-Filename'] = filename
|
headers['WARC-Filename'] = filename
|
||||||
headers['WARC-Date'] = datetime_to_iso_date(datetime.datetime.utcnow())
|
headers['WARC-Date'] = datetime_to_iso_date(datetime.datetime.utcnow())
|
||||||
|
headers['Content-Type'] = 'application/warc-fields'
|
||||||
|
|
||||||
warcinfo = BytesIO()
|
warcinfo = BytesIO()
|
||||||
for n, v in six.iteritems(kwargs):
|
for n, v in six.iteritems(kwargs):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user