Closed pufferffish closed 2 years ago
We already set X-Pm-Appversion
. The User-Agent
change may fix it for some users, but will break it for others.
We already set
X-Pm-Appversion
. TheUser-Agent
change may fix it for some users, but will break it for others.
I see. Would it be a good idea to try numerous User Agents instead of fixing it to one specific string then? Or provide an argument to allow custom user agent instead?
No, that would be a workaround. The proper fix would be #218.
This pull request fixes #179. I skimmed through proton-python-client and it seems that
User-Agent
andx-pm-appversion
is needed for login to work.I tried this on two different protonmail accounts on two different IPs and login works for me.