Normalize application/x-javascript

Should be just application/javascript
This commit is contained in:
Daniel Schadt 2015-11-21 16:17:20 +01:00
parent 7d6327873a
commit 86eda2843d

View File

@ -40,6 +40,12 @@ def normalize_line(line):
'boundary="---=_qute-UUID"', line)
line = re.sub('^-----=_qute-[0-9a-f-]+$', '-----=_qute-UUID', line)
line = re.sub(r'localhost:\d{1,5}', 'localhost:(port)', line)
# Depending on Python's mimetypes module/the system's mime files, .js
# files could be either identified as x-javascript or just javascript
line = line.replace('Content-Type: application/x-javascript',
'Content-Type: application/javascript')
return line