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

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