Permalink
Browse files

Revert the last commit and just append ':' in the options variable.

  • Loading branch information...
1 parent b4dddfe commit 128a8acd91aceb21219fd1a6101259e89c94111c @jplock jplock committed Jan 16, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 app.js
View
6 app.js
@@ -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,
@@ -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 == '') {

0 comments on commit 128a8ac

Please sign in to comment.