From 3f34ac7738269760e734db369b9c670cf2f496a7 Mon Sep 17 00:00:00 2001 From: Saleh Dehqanpour Date: Tue, 19 Mar 2024 22:24:39 +0330 Subject: [PATCH] docs: fix wrong sentence in SimpleHTTPRequestHandler about serving text files The code does not differentiate between text and binary files so the sentence should be removed from the doc. See #117026 --- Doc/library/http.server.rst | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Doc/library/http.server.rst b/Doc/library/http.server.rst index 886e359bd8cd621..7c3913c4be1aa3e 100644 --- a/Doc/library/http.server.rst +++ b/Doc/library/http.server.rst @@ -389,8 +389,7 @@ provides three different variants: ``'Last-Modified:'`` header with the file's modification time. Then follows a blank line signifying the end of the headers, and then the - contents of the file are output. If the file's MIME type starts with - ``text/`` the file is opened in text mode; otherwise binary mode is used. + contents of the file are output. For example usage, see the implementation of the ``test`` function in :source:`Lib/http/server.py`.