8000 Revert mimetypes change, test with content-type: text/html · python/cpython@fbbb3c3 · GitHub
[go: up one dir, main page]

Skip to content

Commit fbbb3c3

Browse files
committed
Revert mimetypes change, test with content-type: text/html
1 parent 00e6c4e commit fbbb3c3

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Lib/mimetypes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ def init(files=None):
367367
if files is None or _db is None:
368368
db = MimeTypes()
369369
# Quick return if not supported
370-
# db.read_windows_registry()
370+
db.read_windows_registry()
371371

372372
if files is None:
373373
files = knownfiles

Lib/test/test_httpservers.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -593,9 +593,12 @@ def test_html_escape_filename(self):
593593
#!%s
594594
import os
595595
596-
print("Content-type: text/plain")
596+
print("X-ambv: was here")
597+
print("Content-type: text/html")
597598
print()
599+
print("<pre>")
598600
print(repr(os.environ))
601+
print("</pre>")
599602< 447A /code>
"""
600603

601604

0 commit comments

Comments
 (0)
0