Title: default http content-type · Issue #113471 · python/cpython · GitHub
Open Graph Title: default http content-type · Issue #113471 · python/cpython
X Title: default http content-type · Issue #113471 · python/cpython
Description: Feature or enhancement Proposal: Allow changing the default mime-type from application/octet-stream, so testing using python -m http.server doesn't automatically download files lacking extensions. Useful for testing with mitmproxy agains...
Open Graph Description: Feature or enhancement Proposal: Allow changing the default mime-type from application/octet-stream, so testing using python -m http.server doesn't automatically download files lacking extensions. ...
X Description: Feature or enhancement Proposal: Allow changing the default mime-type from application/octet-stream, so testing using python -m http.server doesn't automatically download files lacking extensio...
Opengraph URL: https://github.com/python/cpython/issues/113471
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"default http content-type","articleBody":"# Feature or enhancement\n\n### Proposal:\n\nAllow changing the default mime-type from `application/octet-stream`, so testing using `python -m http.server` doesn't automatically download files lacking extensions. Useful for testing with mitmproxy against a fake site copied from the real one.\n\n```bash\npython3 -m http.server -b 127.0.0.1 -c 'text/html'\n```\n\n\n### Has this already been discussed elsewhere?\n\nThis is a minor feature, which does not need previous discussion elsewhere\n\n### Links to previous discussion of this feature:\n\nNo previous discussion. This feature should not affect any existing code using the main branch of cpython.\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-113475\n* gh-131000\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/jcomeauictx","@type":"Person","name":"jcomeauictx"},"datePublished":"2023-12-25T17:21:17Z","url":"https://github.com/python/cpython/issues/113471"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:39f2ab60-0682-1fcb-8de4-35553f608e0e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9B1A:387E7D:20975A:2C36E5:6AECC435 |
| html-safe-nonce | 00b601be615c11998cef0232d441a22c671d213c29b81840a96865b141148baa |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QjFBOjM4N0U3RDoyMDk3NUE6MkMzNkU1OjZBRUNDNDM1IiwidmlzaXRvcl9pZCI6Ijc3MzY3NzEwMjQ0MTcyNDQyMTMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | bb0b3047405d7e0cebc16fc12a651868e2ae2f86f39f49d4e9bb0fde2fe779d2 |
| hovercard-subject-tag | issue:2055792168 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/113471/issue_layout |
| twitter:image | https://opengraph.githubassets.com/699f9d692c825e8dea4696a41385ad1428946741eb1f277c0c8081bf68aa3a28/python/cpython/issues/113471 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/699f9d692c825e8dea4696a41385ad1428946741eb1f277c0c8081bf68aa3a28/python/cpython/issues/113471 |
| og:image:alt | Feature or enhancement Proposal: Allow changing the default mime-type from application/octet-stream, so testing using python -m http.server doesn't automatically download files lacking extensions. ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jcomeauictx |
| hostname | github.com |
| expected-hostname | github.com |
| None | dc0b519c5798dc1150b88dc4c06a8b9634d0069218dc04e469970e76aad74016 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | db139f0bf57b59bf9a8c4abb0849924d6c6ca559 |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width