mirror of
https://github.com/webrecorder/pywb.git
synced 2025-03-15 08:04:49 +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:
|
||||
headers['WARC-Filename'] = filename
|
||||
headers['WARC-Date'] = datetime_to_iso_date(datetime.datetime.utcnow())
|
||||
headers['Content-Type'] = 'application/warc-fields'
|
||||
|
||||
warcinfo = BytesIO()
|
||||
for n, v in six.iteritems(kwargs):
|
||||
|
Loading…
x
Reference in New Issue
Block a user