Skip to content

Commit

Permalink
Performed encodeURI on path before creating auth header. Fixes xtian#6
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Wesselhoeft committed Mar 11, 2013
1 parent d14a0c2 commit cd585ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -11,7 +11,7 @@ armory._get = function(path, options, callback) {
options.jar = false
options.json = true

path = '/api/wow' + path
path = encodeURI('/api/wow' + path)

if (options.locale) { options._query.locale = options.locale }
if (!options.region) { throw new Error('region must be provided') }
Expand Down

0 comments on commit cd585ee

Please sign in to comment.