Skip to content

DeprecationWarning: HTTPResponse.getheader() is deprecated and will be removed in urllib3 v2.1.0. #83

@snijbell

Description

@snijbell

Getting the following warning:

DeprecationWarning: HTTPResponse.getheader() is deprecated and will be removed in urllib3 v2.1.0. Instead use HTTPResponse.headers.get(name, default). return self.urllib3_response.getheader(name, default)

A previous issue #71 covered the case of all headers, but the single header case also needs a change.

return self.urllib3_response.getheader(name, default)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions