Skip to content

Commit

Permalink
Revert the last commit and just append ':' in the options variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
jplock committed Jan 16, 2012
1 parent b4dddfe commit 128a8ac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -307,10 +307,10 @@ function processRequest(req, res, next) {
baseHostPort = (baseHostInfo.length > 1) ? baseHostInfo[1] : "";

var paramString = query.stringify(params),
privateReqURL = apiConfig.protocol + '//' + apiConfig.baseURL + apiConfig.privatePath + methodURL + ((paramString.length > 0) ? '?' + paramString : ""),
privateReqURL = apiConfig.protocol + '://' + apiConfig.baseURL + apiConfig.privatePath + methodURL + ((paramString.length > 0) ? '?' + paramString : ""),
options = {
headers: {},
protocol: apiConfig.protocol,
protocol: apiConfig.protocol + ':',
host: baseHostUrl,
port: baseHostPort,
method: httpMethod,
Expand Down Expand Up @@ -395,7 +395,7 @@ function processRequest(req, res, next) {
null,
apiConfig.oauth.crypt);

var resource = options.protocol + '//' + options.host + options.path,
var resource = options.protocol + '://' + options.host + options.path,
cb = function(error, data, response) {
if (error) {
if (error.data == 'Server Error' || error.data == '') {
Expand Down

0 comments on commit 128a8ac

Please sign in to comment.