Fix typos in HTTPResponse.getheaders() warnings
MODIFY
src/urllib3/response.py
src/urllib3/response.py
@@ -472,7 +472,7 @@ class BaseHTTPResponse(io.IOBase):
def getheaders(self) -> HTTPHeaderDict:
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,
)
@@ -481,7 +481,7 @@ class BaseHTTPResponse(io.IOBase):
def getheader(self, name: str, default: str | None = None) -> str | 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,
)

Fix typos in HTTPResponse.getheaders() warnings