Skip to content

Commit

Permalink
Allow for custom port number for node.
Browse files Browse the repository at this point in the history
Bump version to 1.25.5
  • Loading branch information
install committed May 4, 2015
1 parent 8b8b2fb commit ba058ee
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
8 changes: 6 additions & 2 deletions evernote-sdk-js/thrift/lib/node/thrift-node-binary.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,13 @@ exports.NodeBinaryHttpTransport = function(url) {
callback("Invalid endpoint URL: " + self.url);
return;
}
var port = purl['port'];
if (!port) {
port = purl['protocol'] === 'https' ? 443 : 80;
}
var options = {
hostname: purl['host'],
port: purl['protocol'] == 'https' ? 443 : 80,
hostname: purl['hostname'],
port: port,
path: purl['path'],
method: 'POST',
headers: self.headers
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"author": "Evernote",
"name": "evernote",
"description": "Evernote SDK for Node.js",
"version": "1.25.4",
"version": "1.25.5",
"repository": {
"url": "https://github.com/evernote/evernote-sdk-js"
},
Expand Down
2 changes: 1 addition & 1 deletion sample/meteor/packages.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"evernote": "1.25.4"
"evernote": "1.25.5"
}

0 comments on commit ba058ee

Please sign in to comment.