diff --git a/hubspot/automation/actions/rest.py b/hubspot/automation/actions/rest.py index b18deac6..8e580302 100644 --- a/hubspot/automation/actions/rest.py +++ b/hubspot/automation/actions/rest.py @@ -38,11 +38,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): diff --git a/hubspot/cms/audit_logs/rest.py b/hubspot/cms/audit_logs/rest.py index 1c2464e3..5100b943 100644 --- a/hubspot/cms/audit_logs/rest.py +++ b/hubspot/cms/audit_logs/rest.py @@ -38,11 +38,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): diff --git a/hubspot/cms/blogs/authors/rest.py b/hubspot/cms/blogs/authors/rest.py index bbe65196..e4dc9a0d 100644 --- a/hubspot/cms/blogs/authors/rest.py +++ b/hubspot/cms/blogs/authors/rest.py @@ -38,11 +38,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): diff --git a/hubspot/cms/blogs/blog_posts/rest.py b/hubspot/cms/blogs/blog_posts/rest.py index 8ed79726..e83923b6 100644 --- a/hubspot/cms/blogs/blog_posts/rest.py +++ b/hubspot/cms/blogs/blog_posts/rest.py @@ -38,11 +38,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): diff --git a/hubspot/cms/blogs/tags/rest.py b/hubspot/cms/blogs/tags/rest.py index 2707da1d..43c8e8fa 100644 --- a/hubspot/cms/blogs/tags/rest.py +++ b/hubspot/cms/blogs/tags/rest.py @@ -38,11 +38,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): diff --git a/hubspot/cms/domains/rest.py b/hubspot/cms/domains/rest.py index 9c2cd43f..95529c66 100644 --- a/hubspot/cms/domains/rest.py +++ b/hubspot/cms/domains/rest.py @@ -38,11 +38,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): diff --git a/hubspot/cms/hubdb/rest.py b/hubspot/cms/hubdb/rest.py index 57e240ae..85a7ccc5 100644 --- a/hubspot/cms/hubdb/rest.py +++ b/hubspot/cms/hubdb/rest.py @@ -38,11 +38,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): diff --git a/hubspot/cms/pages/rest.py b/hubspot/cms/pages/rest.py index a7a2dcc6..4e87fe18 100644 --- a/hubspot/cms/pages/rest.py +++ b/hubspot/cms/pages/rest.py @@ -38,11 +38,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): diff --git a/hubspot/cms/site_search/rest.py b/hubspot/cms/site_search/rest.py index 06445de3..ae66493c 100644 --- a/hubspot/cms/site_search/rest.py +++ b/hubspot/cms/site_search/rest.py @@ -38,11 +38,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): diff --git a/hubspot/cms/source_code/rest.py b/hubspot/cms/source_code/rest.py index 7abaf56d..f90b5569 100644 --- a/hubspot/cms/source_code/rest.py +++ b/hubspot/cms/source_code/rest.py @@ -38,11 +38,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): diff --git a/hubspot/cms/url_redirects/rest.py b/hubspot/cms/url_redirects/rest.py index 55813ab6..9bccc1d7 100644 --- a/hubspot/cms/url_redirects/rest.py +++ b/hubspot/cms/url_redirects/rest.py @@ -38,11 +38,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): diff --git a/hubspot/communication_preferences/rest.py b/hubspot/communication_preferences/rest.py index c61c3795..97263a9e 100644 --- a/hubspot/communication_preferences/rest.py +++ b/hubspot/communication_preferences/rest.py @@ -38,11 +38,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): diff --git a/hubspot/conversations/visitor_identification/rest.py b/hubspot/conversations/visitor_identification/rest.py index 11628106..4d3c5281 100644 --- a/hubspot/conversations/visitor_identification/rest.py +++ b/hubspot/conversations/visitor_identification/rest.py @@ -38,11 +38,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): diff --git a/hubspot/crm/associations/rest.py b/hubspot/crm/associations/rest.py index 0c8dca39..c7bf1f10 100644 --- a/hubspot/crm/associations/rest.py +++ b/hubspot/crm/associations/rest.py @@ -38,11 +38,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): diff --git a/hubspot/crm/associations/schema/rest.py b/hubspot/crm/associations/schema/rest.py index 2e16fa01..20d6ad27 100644 --- a/hubspot/crm/associations/schema/rest.py +++ b/hubspot/crm/associations/schema/rest.py @@ -38,11 +38,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): diff --git a/hubspot/crm/associations/v4/rest.py b/hubspot/crm/associations/v4/rest.py index 3e09fa06..55b5cee2 100644 --- a/hubspot/crm/associations/v4/rest.py +++ b/hubspot/crm/associations/v4/rest.py @@ -38,11 +38,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): diff --git a/hubspot/crm/associations/v4/schema/rest.py b/hubspot/crm/associations/v4/schema/rest.py index d091f61f..a95badf2 100644 --- a/hubspot/crm/associations/v4/schema/rest.py +++ b/hubspot/crm/associations/v4/schema/rest.py @@ -38,11 +38,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): diff --git a/hubspot/crm/commerce/invoices/rest.py b/hubspot/crm/commerce/invoices/rest.py index 15aece59..018508ae 100644 --- a/hubspot/crm/commerce/invoices/rest.py +++ b/hubspot/crm/commerce/invoices/rest.py @@ -38,11 +38,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): diff --git a/hubspot/crm/companies/rest.py b/hubspot/crm/companies/rest.py index 282ffe23..36bbd6cb 100644 --- a/hubspot/crm/companies/rest.py +++ b/hubspot/crm/companies/rest.py @@ -38,11 +38,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): diff --git a/hubspot/crm/contacts/rest.py b/hubspot/crm/contacts/rest.py index 7d9fefe1..9601dcd0 100644 --- a/hubspot/crm/contacts/rest.py +++ b/hubspot/crm/contacts/rest.py @@ -38,11 +38,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): diff --git a/hubspot/crm/deals/rest.py b/hubspot/crm/deals/rest.py index 16729340..d37e61b5 100644 --- a/hubspot/crm/deals/rest.py +++ b/hubspot/crm/deals/rest.py @@ -38,11 +38,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): diff --git a/hubspot/crm/exports/rest.py b/hubspot/crm/exports/rest.py index 07993cb0..52383677 100644 --- a/hubspot/crm/exports/rest.py +++ b/hubspot/crm/exports/rest.py @@ -38,11 +38,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): diff --git a/hubspot/crm/extensions/calling/rest.py b/hubspot/crm/extensions/calling/rest.py index 0d835dd7..8bf45b91 100644 --- a/hubspot/crm/extensions/calling/rest.py +++ b/hubspot/crm/extensions/calling/rest.py @@ -38,11 +38,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): diff --git a/hubspot/crm/extensions/cards/rest.py b/hubspot/crm/extensions/cards/rest.py index 19e09ea1..98a4f1f0 100644 --- a/hubspot/crm/extensions/cards/rest.py +++ b/hubspot/crm/extensions/cards/rest.py @@ -38,11 +38,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): diff --git a/hubspot/crm/extensions/videoconferencing/rest.py b/hubspot/crm/extensions/videoconferencing/rest.py index 059dab33..4b0efc64 100644 --- a/hubspot/crm/extensions/videoconferencing/rest.py +++ b/hubspot/crm/extensions/videoconferencing/rest.py @@ -38,11 +38,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): diff --git a/hubspot/crm/imports/rest.py b/hubspot/crm/imports/rest.py index c9df7111..9b0aa7fc 100644 --- a/hubspot/crm/imports/rest.py +++ b/hubspot/crm/imports/rest.py @@ -38,11 +38,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): diff --git a/hubspot/crm/line_items/rest.py b/hubspot/crm/line_items/rest.py index 37b07080..965b24c3 100644 --- a/hubspot/crm/line_items/rest.py +++ b/hubspot/crm/line_items/rest.py @@ -38,11 +38,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): diff --git a/hubspot/crm/lists/rest.py b/hubspot/crm/lists/rest.py index 135b3da4..015219d7 100644 --- a/hubspot/crm/lists/rest.py +++ b/hubspot/crm/lists/rest.py @@ -38,11 +38,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): diff --git a/hubspot/crm/objects/calls/rest.py b/hubspot/crm/objects/calls/rest.py index b10ad652..ed32d7c9 100644 --- a/hubspot/crm/objects/calls/rest.py +++ b/hubspot/crm/objects/calls/rest.py @@ -38,11 +38,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): diff --git a/hubspot/crm/objects/communications/rest.py b/hubspot/crm/objects/communications/rest.py index 45c2ac43..6e857a95 100644 --- a/hubspot/crm/objects/communications/rest.py +++ b/hubspot/crm/objects/communications/rest.py @@ -38,11 +38,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): diff --git a/hubspot/crm/objects/deal_splits/rest.py b/hubspot/crm/objects/deal_splits/rest.py index 57f83d10..33c6cb06 100644 --- a/hubspot/crm/objects/deal_splits/rest.py +++ b/hubspot/crm/objects/deal_splits/rest.py @@ -38,11 +38,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): diff --git a/hubspot/crm/objects/emails/rest.py b/hubspot/crm/objects/emails/rest.py index 0a1aada3..7ee21d09 100644 --- a/hubspot/crm/objects/emails/rest.py +++ b/hubspot/crm/objects/emails/rest.py @@ -38,11 +38,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): diff --git a/hubspot/crm/objects/feedback_submissions/rest.py b/hubspot/crm/objects/feedback_submissions/rest.py index 76807ed7..038017aa 100644 --- a/hubspot/crm/objects/feedback_submissions/rest.py +++ b/hubspot/crm/objects/feedback_submissions/rest.py @@ -38,11 +38,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): diff --git a/hubspot/crm/objects/goals/rest.py b/hubspot/crm/objects/goals/rest.py index a882964d..8a1eab7d 100644 --- a/hubspot/crm/objects/goals/rest.py +++ b/hubspot/crm/objects/goals/rest.py @@ -38,11 +38,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): diff --git a/hubspot/crm/objects/leads/rest.py b/hubspot/crm/objects/leads/rest.py index b438ccef..16f97736 100644 --- a/hubspot/crm/objects/leads/rest.py +++ b/hubspot/crm/objects/leads/rest.py @@ -38,11 +38,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): diff --git a/hubspot/crm/objects/meetings/rest.py b/hubspot/crm/objects/meetings/rest.py index 0a2042a3..4d823442 100644 --- a/hubspot/crm/objects/meetings/rest.py +++ b/hubspot/crm/objects/meetings/rest.py @@ -38,11 +38,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): diff --git a/hubspot/crm/objects/notes/rest.py b/hubspot/crm/objects/notes/rest.py index 973e825c..eb0b2791 100644 --- a/hubspot/crm/objects/notes/rest.py +++ b/hubspot/crm/objects/notes/rest.py @@ -38,11 +38,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): diff --git a/hubspot/crm/objects/postal_mail/rest.py b/hubspot/crm/objects/postal_mail/rest.py index cd5017eb..22202e05 100644 --- a/hubspot/crm/objects/postal_mail/rest.py +++ b/hubspot/crm/objects/postal_mail/rest.py @@ -38,11 +38,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): diff --git a/hubspot/crm/objects/rest.py b/hubspot/crm/objects/rest.py index eb9457df..fd32182a 100644 --- a/hubspot/crm/objects/rest.py +++ b/hubspot/crm/objects/rest.py @@ -38,11 +38,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): diff --git a/hubspot/crm/objects/tasks/rest.py b/hubspot/crm/objects/tasks/rest.py index fade409e..d0adb32c 100644 --- a/hubspot/crm/objects/tasks/rest.py +++ b/hubspot/crm/objects/tasks/rest.py @@ -38,11 +38,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): diff --git a/hubspot/crm/objects/taxes/rest.py b/hubspot/crm/objects/taxes/rest.py index b6afee94..7c58f5ee 100644 --- a/hubspot/crm/objects/taxes/rest.py +++ b/hubspot/crm/objects/taxes/rest.py @@ -38,11 +38,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): diff --git a/hubspot/crm/owners/rest.py b/hubspot/crm/owners/rest.py index 80226f33..b50a3f61 100644 --- a/hubspot/crm/owners/rest.py +++ b/hubspot/crm/owners/rest.py @@ -38,11 +38,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): diff --git a/hubspot/crm/pipelines/rest.py b/hubspot/crm/pipelines/rest.py index ca76cb4b..5158df0a 100644 --- a/hubspot/crm/pipelines/rest.py +++ b/hubspot/crm/pipelines/rest.py @@ -38,11 +38,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): diff --git a/hubspot/crm/products/rest.py b/hubspot/crm/products/rest.py index 02713d46..9f5b62b3 100644 --- a/hubspot/crm/products/rest.py +++ b/hubspot/crm/products/rest.py @@ -38,11 +38,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): diff --git a/hubspot/crm/properties/rest.py b/hubspot/crm/properties/rest.py index ab224244..773a91c6 100644 --- a/hubspot/crm/properties/rest.py +++ b/hubspot/crm/properties/rest.py @@ -38,11 +38,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): diff --git a/hubspot/crm/quotes/rest.py b/hubspot/crm/quotes/rest.py index 26f33a3c..cdd752ab 100644 --- a/hubspot/crm/quotes/rest.py +++ b/hubspot/crm/quotes/rest.py @@ -38,11 +38,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): diff --git a/hubspot/crm/schemas/rest.py b/hubspot/crm/schemas/rest.py index d958b57e..ab1839f3 100644 --- a/hubspot/crm/schemas/rest.py +++ b/hubspot/crm/schemas/rest.py @@ -38,11 +38,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): diff --git a/hubspot/crm/tickets/rest.py b/hubspot/crm/tickets/rest.py index 8a58ac75..e28600ac 100644 --- a/hubspot/crm/tickets/rest.py +++ b/hubspot/crm/tickets/rest.py @@ -38,11 +38,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): diff --git a/hubspot/crm/timeline/rest.py b/hubspot/crm/timeline/rest.py index f809d191..b49d9d5c 100644 --- a/hubspot/crm/timeline/rest.py +++ b/hubspot/crm/timeline/rest.py @@ -38,11 +38,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): diff --git a/hubspot/events/rest.py b/hubspot/events/rest.py index 2a8b1953..4721a0b3 100644 --- a/hubspot/events/rest.py +++ b/hubspot/events/rest.py @@ -38,11 +38,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): diff --git a/hubspot/events/send/rest.py b/hubspot/events/send/rest.py index 5c725ba8..e5382338 100644 --- a/hubspot/events/send/rest.py +++ b/hubspot/events/send/rest.py @@ -38,11 +38,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): diff --git a/hubspot/files/rest.py b/hubspot/files/rest.py index f15bfddd..c854666a 100644 --- a/hubspot/files/rest.py +++ b/hubspot/files/rest.py @@ -38,11 +38,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): diff --git a/hubspot/marketing/emails/rest.py b/hubspot/marketing/emails/rest.py index 555f05fb..c76b472b 100644 --- a/hubspot/marketing/emails/rest.py +++ b/hubspot/marketing/emails/rest.py @@ -38,11 +38,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): diff --git a/hubspot/marketing/events/rest.py b/hubspot/marketing/events/rest.py index 779ddb81..a263a89a 100644 --- a/hubspot/marketing/events/rest.py +++ b/hubspot/marketing/events/rest.py @@ -38,11 +38,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): diff --git a/hubspot/marketing/forms/rest.py b/hubspot/marketing/forms/rest.py index 4933348a..cd1b929e 100644 --- a/hubspot/marketing/forms/rest.py +++ b/hubspot/marketing/forms/rest.py @@ -38,11 +38,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): diff --git a/hubspot/marketing/transactional/rest.py b/hubspot/marketing/transactional/rest.py index 9c379464..dc4d5a79 100644 --- a/hubspot/marketing/transactional/rest.py +++ b/hubspot/marketing/transactional/rest.py @@ -38,11 +38,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): diff --git a/hubspot/oauth/rest.py b/hubspot/oauth/rest.py index 1dc47433..90e818f0 100644 --- a/hubspot/oauth/rest.py +++ b/hubspot/oauth/rest.py @@ -38,11 +38,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): diff --git a/hubspot/settings/business_units/rest.py b/hubspot/settings/business_units/rest.py index 070c9461..862d4e89 100644 --- a/hubspot/settings/business_units/rest.py +++ b/hubspot/settings/business_units/rest.py @@ -38,11 +38,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): diff --git a/hubspot/settings/users/rest.py b/hubspot/settings/users/rest.py index 30ba89b5..b2361a94 100644 --- a/hubspot/settings/users/rest.py +++ b/hubspot/settings/users/rest.py @@ -38,11 +38,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): diff --git a/hubspot/webhooks/rest.py b/hubspot/webhooks/rest.py index 0b31ae78..a9271ad6 100644 --- a/hubspot/webhooks/rest.py +++ b/hubspot/webhooks/rest.py @@ -38,11 +38,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):