Skip to content

Commit

Permalink
Fix typos in HTTPResponse.getheaders() warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
kurtmckee committed Nov 28, 2022
1 parent 2f6833a commit 61e86ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/urllib3/response.py
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,7 @@ def from_httplib(ResponseCls, r, **response_kw):
def getheaders(self):
warnings.warn(
"HTTPResponse.getheaders() is deprecated and will be removed "
"in urllib3 v2.1.0. Instead access HTTResponse.headers directly.",
"in urllib3 v2.1.0. Instead access HTTPResponse.headers directly.",
category=DeprecationWarning,
stacklevel=2,
)
Expand All @@ -675,7 +675,7 @@ def getheaders(self):
def getheader(self, name, default=None):
warnings.warn(
"HTTPResponse.getheader() is deprecated and will be removed "
"in urllib3 v2.1.0. Instead use HTTResponse.headers.get(name, default).",
"in urllib3 v2.1.0. Instead use HTTPResponse.headers.get(name, default).",
category=DeprecationWarning,
stacklevel=2,
)
Expand Down

0 comments on commit 61e86ea

Please sign in to comment.