Skip to content

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

Closed
@SalehDehqanpour

Description

@SalehDehqanpour

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

Activity

serhiy-storchaka

serhiy-storchaka commented on May 16, 2025

@serhiy-storchaka
Member

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

added a commit that references this issue on May 16, 2025

gh-117026: Remove outdated sentence in SimpleHTTPRequestHandler docs (G…

ea2d707
added a commit that references this issue on May 16, 2025

pythongh-117026: Remove outdated sentence in SimpleHTTPRequestHandler…

added 2 commits that reference this issue on May 16, 2025

[3.14] gh-117026: Remove outdated sentence in SimpleHTTPRequestHandle…

7a5851d

[3.13] gh-117026: Remove outdated sentence in SimpleHTTPRequestHandle…

4291bbe

1 remaining item

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation in the Doc dir

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

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

      Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

      Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant