8000 http.server misleading point in doc about "text/*" mime types · Issue #117026 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

http.server misleading point in doc about "text/*" mime types #117026

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

Closed
SalehDehqanpour opened this issue 8000 Mar 19, 2024 · 1 comment
Closed

http.server misleading point in doc about "text/*" mime types #117026

SalehDehqanpour opened this issue Mar 19, 2024 · 1 comment
Labels
docs Documentation in the Doc dir

Comments

@SalehDehqanpour
Copy link
Contributor
SalehDehqanpour commented Mar 19, 2024

Documentation

It's said in the http.server docs:

If the file’s MIME type starts with text/ the file is opened in text mode; otherwise binary mode is used.

But the code always opens file in binary mode so this is not true. The quoted sentence should be removed.

Linked PRs

@SalehDehqanpour SalehDehqanpour added the docs Documentation in the Doc dir label Mar 19, 2024
SalehDehqanpour added a commit to SalehDehqanpour/cpython that referenced this issue Mar 19, 2024
…xt files

The code does not differentiate between text and binary files so the sentence should be removed from the doc. See python#117026
@serhiy-storchaka
Copy link
Member

For reference, the code was changed in 0f7cddc (bpo-839496/gh-39531).

miss-islington pushed a commit to miss-islington/cpython that referenced this issue May 16, 2025
… docs (pythonGH-117027)

The code was changed in 0f7cddc (bpo-839496/pythongh-39531).
(cherry picked from commit ea2d707)

Co-authored-by: Saleh Dehqanpour <salehdeh76@gmail.com>
miss-islington pushed a commit to miss-islington/cpython that referenced this issue May 16, 2025
… docs (pythonGH-117027)

The code was changed in 0f7cddc (bpo-839496/pythongh-39531).
(cherry picked from commit ea2d707)

Co-authored-by: Saleh Dehqanpour <salehdeh76@gmail.com>
serhiy-storchaka pushed a commit that referenced this issue May 16, 2025
…r docs (GH-117027) (GH-134107)

The code was changed in 0f7cddc (bpo-839496/gh-39531).
(cherry picked from commit ea2d707)

Co-authored-by: Saleh Dehqanpour <salehdeh76@gmail.com>
serhiy-storchaka pushed a commit that referenced this issue May 16, 2025
…r docs (GH-117027) (GH-134108)

The code was changed in 0f7cddc (bpo-839496/gh-39531).
(cherry picked from commit ea2d707)

Co-authored-by: Saleh Dehqanpour <salehdeh76@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir
Projects
None yet
Development

No branches or pull requests

2 participants
0