the HubSpot API started returning headers in lowercase a few days ago. Is this an intended change or an accident? I can't find any post or article about it.
Examle: X-HubSpot-RateLimit-Daily chnaged to x-hubspot-ratelimit-daily
We can adapt to the change, we just want to be sure that this is the final form and it will not be reverted in a few days....
the HubSpot API started returning headers in lowercase a few days ago. Is this an intended change or an accident? I can't find any post or article about it.
Examle: X-HubSpot-RateLimit-Daily chnaged to x-hubspot-ratelimit-daily
We can adapt to the change, we just want to be sure that this is the final form and it will not be reverted in a few days....
To handle the change in HTTP header case from the HubSpot API, you can adapt your code to be case-insensitive when reading headers. Most programming languages and libraries provide a way to access headers without considering their case. For example, in Python, you can use a case-insensitive dictionary, and in JavaScript, headers are typically accessed in a case-insensitive manner by default. By implementing a case-insensitive approach to handling headers, you can ensure that your code remains robust and functional regardless of future changes in header case formatting by the API.
I am well aware that I can handle it in case insensitive manner, however it's not possible to do so natively in the tool I am using (I would have to copy the map while lowercasing the entries or try both options).
All I want is to someone from HubSpot to confirm whether this is a planned change or a bug.