Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix DeprecationWarning raised by urllib3 1.26.13 #246

Merged
merged 2 commits into from
Dec 1, 2022
Merged

Fix DeprecationWarning raised by urllib3 1.26.13 #246

merged 2 commits into from
Dec 1, 2022

Conversation

Tenzer
Copy link
Contributor

@Tenzer Tenzer commented Nov 24, 2022

Description

urllib3 has started to emit a DeprecationWarning whenever HTTPResponse.getheaders() is called since version 1.26.13.

This changes the one place where this is done to instead use HTTPResponse.headers instead, which is the recommend way of retrieving the headers going forwards.

Issues Resolved

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

urllib3 has started to emit a DeprecationWarning whenever
HTTPResponse.getheaders() is called since version 1.26.13.

This changes the one place where this is done to instead use
HTTPResponse.headers instead, which is the recommend way of retrieving
the headers going forwards.

Signed-off-by: Jeppe Fihl-Pearson <jeppe@memrise.com>
Signed-off-by: Jeppe Fihl-Pearson <jeppe@memrise.com>
@harshavamsi harshavamsi merged commit 4c4091b into opensearch-project:main Dec 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants