Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix bugs discovered by the test cases

  • Loading branch information...
commit 0f4617f65faba2c8e2798831c4df262ac3aabc0f 1 parent 8213e0b
@novemberborn novemberborn authored
Showing with 3 additions and 3 deletions.
  1. +2 −2 lib/oauth.js
  2. +1 −1  lib/util/querystring.js
View
4 lib/oauth.js
@@ -185,10 +185,10 @@ Client.prototype.request = function(originalRequest){
Client.prototype._normalizeUrl = function(request){
var normalized = request.protocol + "//" + request.hostname;
- if(request.protocol == "http" && request.port && (request.port + "") != "80"){
+ if(request.protocol == "http:" && request.port && (request.port + "") != "80"){
normalized += ":" + request.port;
}
- if(request.protocol == "https" && request.port && (request.port + "") != "443"){
+ if(request.protocol == "https:" && request.port && (request.port + "") != "443"){
normalized += ":" + request.port;
}
return normalized + request.pathname;
View
2  lib/util/querystring.js
@@ -32,7 +32,7 @@ exports.addToArray = function(arr, name, value){
break;
case "[object Object]":
for(var k in value){
- exports.addToArray(arr, name + "[" + k + "]", value);
+ exports.addToArray(arr, name + "[" + k + "]", value[k]);
}
};
};
Please sign in to comment.
Something went wrong with that request. Please try again.