Skip to content

Commit

Permalink
#51 resolved. fixed bug when running on port 80.
Browse files Browse the repository at this point in the history
  • Loading branch information
itayw committed Mar 30, 2014
1 parent 5cf9b6f commit 9e9a91c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/common/dispatch.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ dispatch.buildstub = function (callback) {
var parts = require('url').parse(joolaio.options.host);
var options = {
host: parts.hostname,
port: parts.port,
port: parts.port || 80,
secure: parts.protocol !== 'http:',
path: '/api.js',
method: 'GET',
Expand Down Expand Up @@ -58,7 +58,7 @@ dispatch.buildstub = function (callback) {
if (_fn.inputs.required)
_fn.inputs = _fn.inputs.required.concat(_fn.inputs.optional);

if ((args.length - 1 == _fn.inputs.length - 1 || (args.length-1==_fn.inputs.length-2 && _fn.inputs[_fn.inputs.length - 1]=='options')) && _fn.inputs[0] && (_fn.inputs[0] === 'workspace')) {
if ((args.length - 1 == _fn.inputs.length - 1 || (args.length - 1 == _fn.inputs.length - 2 && _fn.inputs[_fn.inputs.length - 1] == 'options')) && _fn.inputs[0] && (_fn.inputs[0] === 'workspace')) {
_args[_fn.inputs[0]] = joolaio.USER.workspace;
addedOrg = 1;
}
Expand Down

0 comments on commit 9e9a91c

Please sign in to comment.