arraylabs / pymyq

Python wrapper for MyQ API
MIT License
112 stars 42 forks source link

Explicitly disable User-Agent header #47

Closed dseven closed 3 years ago

dseven commented 4 years ago

As discussed in #46, we've been playing "whack-a-mole" with User-Agent for a while now. It appears that not sending any User-Agent at all is accepted by myq, at least for now.

This change explicitly disables User-Agent. Note that this is not the same as not specifying a custom value (which was tried before) - in that case, aiohttp adds its own default, which apparently got blacklisted at one point.. This change tells aiohttp to not do that.

ehendrix23 commented 3 years ago

Just tried this and seems this is not working either anymore.