CaptEmulation / clash-of-clans-api

:star::star::star: Clash of Clans :rage1: API NodeJS helper
MIT License
64 stars 25 forks source link

Encoding "#" in tags with encodeURIComponent confuses the api #35

Closed TenshiMunasinghe closed 2 years ago

TenshiMunasinghe commented 2 years ago
Screen Shot 2022-04-16 at 0 29 39 Screen Shot 2022-04-16 at 0 50 27

From what I noticed, the clash api encodes the incoming request urls on its own. So all those encodeURIComponent in the getXXXByTag methods are unnecessary. There's basically a double encoding thing going on here.

TenshiMunasinghe commented 2 years ago

Looks like just this playground encodes urls but not the actual api, my bad.