xtian / node-armory

A simple node.js wrapper around Blizzard's REST API for World of Warcraft.
MIT License
24 stars 8 forks source link

When using auth, the path part needs encodeURI #6

Closed kimptoc closed 11 years ago

kimptoc commented 11 years ago

Like this:

    signature.update(
        'GET\n' +
        header_date + '\n' +
        encodeURI(path) + '\n'
    );

Otherwise you get invalid signature errors for any realms/names with exotic chars - even a space.

Regards, Chris

kimptoc commented 11 years ago

Thanks