urllib3.response.HTTPResponse.getheaders() is deprecated in urllib3

Open
#446 9 comments 0 reactions 1 assignee View on GitHub

@alzheltkovskiy-hubspot is already working on this.

Since Nov 4, 2025.

Assessment

This issue has not been assessed yet.

Description

Hi , I noticed that getheaders() is used when working with urllib3.response.HTTPResponse. This method is deprecated in urllib3 and raises a DepricationWarning error. Maybe it worth considering using headers property

https://github.com/HubSpot/hubspot-api-python/blame/d1eff4b5846f8a4c7cdbc96a2c72930b8d96bb80/hubspot/marketing/transactional/rest.py#L41

Dominant language
Python
Stars
434
Forks
126
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from HubSpot/hubspot-api-python

All issues in HubSpot/hubspot-api-python

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.