Permalink
Browse files

another stupid request fix

  • Loading branch information...
1 parent c70fa97 commit 5ad1248930d5d954b54a9d837f42676910ad7fae @contra contra committed Jan 21, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/nodester.coffee
View
@@ -11,7 +11,7 @@ class Nodester
request: (method, path, body, cb) ->
req =
- uri: encodeUri(@baseurl + path)
+ uri: encodeURI(@baseurl + path)
method: method
body: querystring.stringify(body)
headers:

2 comments on commit 5ad1248

ynov replied Jan 22, 2012

It causes me a new error (invalid password), since the username and password was encoded using encodeURIComponent before (line 10), it will be double-encoded here. I simply remove the encodeURI on line 14, then it fix the error.

Contributor

contra replied Jan 22, 2012

Fixed again e7ff4ea

Please sign in to comment.