filcole / pycarwings2

Python library for interacting with the NissanConnect EV (aka CARWINGS) telematics service.
Apache License 2.0
33 stars 20 forks source link

Go back to sending no identifiable User-Agent on POST requests to Nissan #29

Closed jmason closed 3 years ago

jmason commented 3 years ago

This reverts 4005247aa51127f8b999ebdbeb15c48bceb8390e , and fixes https://github.com/filcole/pycarwings2/issues/28 .

anlupat commented 3 years ago

@filcole please apply this

BenWoodford commented 3 years ago

I think to avoid this in the future, the Session class should take a user agent header as an optional constructor argument, which will overrides the User-Agent on a request if it's not null. Then the library doesn't need updating if this happens again, it's jut a quick fix in HASS

erlendsellie commented 3 years ago

Yay!