nkgilley / python-ecobee-api

Python API for controlling Ecobee Thermostats
MIT License
44 stars 40 forks source link

Specify Content-Type and encoding in HTTP header for auth requests #62

Closed bjpetit closed 3 years ago

bjpetit commented 3 years ago

The Ecobee spec indicates that all requests must have the Content-Type and encoding set in the header. This change adds header info for the authorize call. This appeared to be triggering type exceptions in the request call in some conditions.

bjpetit commented 3 years ago

This isn't necessary. The request module should fill in the appropriate content-type.