Skip to content

Commit 06a9977

Browse files
committed
gh-135056: Fix missing renames of extra_response_headers.
1 parent 3377cf7 commit 06a9977

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Doc/library/http.server.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ instantiation, of which this module provides three different variants:
376376
The *directory* parameter accepts a :term:`path-like object`.
377377

378378
.. versionchanged:: next
379-
Added *response_headers*.
379+
Added *extra_response_headers*.
380380

381381
A lot of the work, such as parsing the request, is done by the base class
382382
:class:`BaseHTTPRequestHandler`. This class implements the :func:`do_GET`

Lib/test/test_httpservers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -831,7 +831,7 @@ def test_path_without_leading_slash(self):
831831
self.assertEqual(response.getheader("Location"),
832832
self.tempdir_name + "/?hi=1")
833833

834-
def test_extra_headers_list_dir(self):
834+
def test_extra_response_headers_list_dir(self):
835835
with mock.patch.object(self.request_handler, 'extra_response_headers', new=[
836836
('X-Test1', 'test1'),
837837
('X-Test2', 'test2'),

0 commit comments

Comments
 (0)