1
0
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:
Ilya Kreymer 2016-04-30 10:19:20 -07:00
parent 7a0dd463cd
commit 0fbae1c7f8

View File

@ -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):