From eb2a56dadce29aed204620bf08e8512952768f7f Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Thu, 5 Feb 2026 00:37:47 +0000 Subject: [PATCH] Fix urllib3 2.6.0+ compatibility in REST client Replace deprecated getheaders() and getheader() methods with the headers property API that works across urllib3 1.26.x and 2.x. Co-Authored-By: Claude Opus 4.5 --- generated/groundlight_openapi_client/rest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/generated/groundlight_openapi_client/rest.py b/generated/groundlight_openapi_client/rest.py index 16d8ca86..23e3d1de 100644 --- a/generated/groundlight_openapi_client/rest.py +++ b/generated/groundlight_openapi_client/rest.py @@ -41,11 +41,11 @@ 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.""" - return self.urllib3_response.getheader(name, default) + return self.urllib3_response.headers.get(name, default) class RESTClientObject(object):