-
-
Notifications
You must be signed in to change notification settings - Fork 34.4k
default http content-type #113471
Copy link
Copy link
Open
Labels
stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancementA feature request or enhancement
Metadata
Metadata
Assignees
Labels
stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancementA feature request or enhancement
Feature or enhancement
Proposal:
Allow changing the default mime-type from
application/octet-stream, so testing usingpython -m http.serverdoesn't automatically download files lacking extensions. Useful for testing with mitmproxy against a fake site copied from the real one.python3 -m http.server -b 127.0.0.1 -c 'text/html'Has this already been discussed elsewhere?
This is a minor feature, which does not need previous discussion elsewhere
Links to previous discussion of this feature:
No previous discussion. This feature should not affect any existing code using the main branch of cpython.
Linked PRs