From 1d18f03629fe83242b867b3b3750b58cdb78222b Mon Sep 17 00:00:00 2001 From: MTBDORK <166766055+MTBDORK@users.noreply.github.com> Date: Tue, 10 Jun 2025 10:17:48 -0700 Subject: [PATCH] Update rest.py HTTPResponse.getheaders() is deprecated and will be removed in urllib3 v2.1.0. A DeprecationWarning is raised when this method is called. This updated file accesses HTTPResponse.headers directly as-recommended. Tested/validated with end-of-day options API --- intrinio_sdk/rest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/intrinio_sdk/rest.py b/intrinio_sdk/rest.py index 9f50904cc..b8aae502a 100644 --- a/intrinio_sdk/rest.py +++ b/intrinio_sdk/rest.py @@ -43,7 +43,7 @@ def __init__(self, resp): def getheaders(self): """Returns a dictionary of the response headers.""" - return self.urllib3_response.getheaders() + return self.urllib3_response.headers def getheader(self, name, default=None): """Returns a given response header."""