Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[3.14] gh-134168: fixhttp.server CLI support for IPv6 and--directory when serving over HTTPS (#134169)#134630

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
picnixz merged 1 commit intopython:3.14frompicnixz:backport-2fd09b0-3.14
May 24, 2025

Conversation

picnixz
Copy link
Member

@picnixzpicnixz commentedMay 24, 2025
edited
Loading

@picnixz
Copy link
MemberAuthor

picnixz commentedMay 24, 2025
edited
Loading

@ggqlq Can you check that this works on3.14 (not 3.15). It should work but we never know. TiA. For this one, can you check both IPv4 and IPv6?

…-directory` when serving over HTTPS (pythonGH-134169)(cherry picked from commit2fd09b0)Co-authored-by: ggqlq <124190229+ggqlq@users.noreply.github.com>
@picnixzpicnixzforce-pushed thebackport-2fd09b0-3.14 branch fromb931d45 to06f32d7CompareMay 24, 2025 12:50
@picnixz
Copy link
MemberAuthor

(I forced push because I wanted the cherry-picker message (I managed to make it work))

@ggqlq
Copy link
Contributor

ggqlq commentedMay 24, 2025
edited
Loading

All passed!
(based on06f32d7)

IPv4 + SSL

$ ./python -m http.server -b 127.0.0.1 --tls-cert~/ssl/localhost.crt --tls-key~/ssl/localhost.keyServing HTTPS on 127.0.0.1 port 8000 (https://127.0.0.1:8000/) ...$ curl -k https://127.0.0.1:8000# ...<ul><li><a href=".azure-pipelines/">.azure-pipelines/</a></li><li><a href=".coveragerc">.coveragerc</a></li>

IPv4 + other directory

$ ./python -m http.server -b 127.0.0.1 -d~/testServing HTTP on 127.0.0.1 port 8000 (http://127.0.0.1:8000/) ...$ curl http://127.0.0.1:8000# ...<ul><li><a href="1">1</a></li><li><a href="2">2</a></li><li><a href="3">3</a></li>

IPv4 + other directory + SSL

$ ./python -m http.server -b 127.0.0.1 --tls-cert~/ssl/localhost.crt --tls-key~/ssl/localhost.key -d~/testServing HTTPS on 127.0.0.1 port 8000 (https://127.0.0.1:8000/) ...$ curl -k https://127.0.0.1:8000# ...<ul><li><a href="1">1</a></li><li><a href="2">2</a></li><li><a href="3">3</a></li></ul>

IPv6 + SSL

$ ./python -m http.server -b ::1 --tls-cert~/ssl/localhost.crt --tls-key~/ssl/localhost.keyServing HTTPS on ::1 port 8000 (https://[::1]:8000/) ...$ curl -k https://[::1]:8000# ...<ul><li><a href=".azure-pipelines/">.azure-pipelines/</a></li><li><a href=".coveragerc">.coveragerc</a></li>

IPv6 + other directory

$ ./python -m http.server -b ::1 -d~/testServing HTTP on ::1 port 8000 (http://[::1]:8000/) ...$ curl http://[::1]:8000# ...<ul><li><a href="1">1</a></li><li><a href="2">2</a></li><li><a href="3">3</a></li></ul>

IPv6 + other directory + SSL

$ ./python -m http.server -b ::1 --tls-cert~/ssl/localhost.crt --tls-key~/ssl/localhost.key -d~/testServing HTTPS on ::1 port 8000 (https://[::1]:8000/) ...$ curl -k https://[::1]:8000# ...<ul><li><a href="1">1</a></li><li><a href="2">2</a></li><li><a href="3">3</a></li></ul>

@picnixzpicnixz merged commit81f0993 intopython:3.14May 24, 2025
41 checks passed
@picnixzpicnixz deleted the backport-2fd09b0-3.14 branchMay 25, 2025 12:03
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@picnixz@ggqlq

[8]ページ先頭

©2009-2025 Movatter.jp