-
-
Notifications
You must be signed in to change notification settings - Fork 33.3k
gh-113471: adds custom default content-type to http.server #113475
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
jcomeauictx
wants to merge
29
commits into
python:main
Choose a base branch
from
jcomeauictx:httpupgrade
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+29
−2
Open
Changes from 9 commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
7848730
changeable default
jcomeauictx 19cde54
ready to test
jcomeauictx e7860c3
passed test this time
jcomeauictx b945ced
DRY fix for #113471
jcomeauictx c2da505
📜🤖 Added by blurb_it.
blurb-it[bot] 2f900fe
Merge branch 'main' into httpupgrade
jcomeauictx 3486458
Merge branch 'main' into httpupgrade
jcomeauictx 497f11e
Merge branch 'httpupgrade' of github.com:jcomeauictx/cpython into htt…
jcomeauictx 48cdd20
Merge branch 'main' into httpupgrade
jcomeauictx d189051
Merge branch 'main' into httpupgrade
jcomeauictx 4a6370b
Update Misc/NEWS.d/next/Library/2023-12-25-19-14-07.gh-issue-113471.Z…
jcomeauictx f7ff834
Merge branch 'httpupgrade' of github.com:jcomeauictx/cpython into htt…
jcomeauictx 7ae00ea
removed short option and inefficiency pointed out by @serhiy-storchaka
jcomeauictx b9841d0
Merge branch 'main' into httpupgrade
jcomeauictx 2ba2aee
adding tests per @serhiy_storchaka's suggestion, not all pass yet
jcomeauictx 819491f
tests all pass
jcomeauictx 2defce3
addresses some of @encukou's observations. still need to add tests.
jcomeauictx 43e6851
Merge branch 'main' into httpupgrade for donBarbos
jcomeauictx 69800b9
donBarbos's suggestion
jcomeauictx 339b3ee
Merge branch 'main' into httpupgrade
jcomeauictx 4778206
Update Doc/library/http.server.rst
jcomeauictx 8903147
Update Misc/NEWS.d/next/Library/2023-12-25-19-14-07.gh-issue-113471.Z…
jcomeauictx dfa30d9
Update Lib/http/server.py
jcomeauictx 3b8450d
Update Lib/http/server.py
jcomeauictx 59f152a
Update Doc/library/http.server.rst
jcomeauictx 259e9b5
Update Lib/http/server.py
jcomeauictx 1662667
Update Doc/library/http.server.rst
jcomeauictx 6fa0a6d
corrected double hyphen
jcomeauictx afe8ebb
moved to options section
jcomeauictx File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
Misc/NEWS.d/next/Library/2023-12-25-19-14-07.gh-issue-113471.ZQMpbI.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Adds ability to set default content-type for no extension/unrecognized extension on http.server module. | ||
jcomeauictx marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.