Blizzard / s2client-proto

StarCraft II Client - protocol definitions used to communicate with StarCraft II.
MIT License
3.76k stars 430 forks source link

Fix download script authentication #131

Closed HalfVoxel closed 5 years ago

HalfVoxel commented 5 years ago

The replay download script authentication seems to be broken. According to the blizzard API documentation the credentials should be sent using HTTP authentication fields, not as part of the params (see https://develop.battle.net/documentation/guides/using-oauth/client-credentials-flow). Changing the code to do this makes it start to work properly for me.

I also made some minor code formatting changes to fix some PEP8 lint errors.