Skip to content
This repository has been archived by the owner on Apr 21, 2020. It is now read-only.

Commit

Permalink
Remove unnecessary whitespace.
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanbreen committed May 5, 2015
1 parent 76960e7 commit 2448c9b
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions lib/proxy/mutators/oauth_param_generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ module.exports = function(proxy) {
var signature = crypto.createHmac("sha1", consumer_secret).update(signature_base).digest("base64");

// Construct an Auth header with this signature.
req.headers['Authorization'] =
req.headers['Authorization'] =
sprintf('OAuth oauth_consumer_key="%s",oauth_signature_method="%s",oauth_signature="%s",oauth_nonce="%s",oauth_timestamp="%s",oauth_version="1.0"',
consumer_key,
SIGNATURE_METHOD,
Expand All @@ -79,12 +79,12 @@ module.exports = function(proxy) {
return next();

} catch (e) {
/* istanbul ignore next */
/* istanbul ignore next */
if (proxy && proxy.logger)
proxy.logger.error(module_tag, "Failed to handle request %s %s%s due to %s:\n%s", req.method, req.headers.host, req.url, e, e.stack);
/* istanbul ignore next */
/* istanbul ignore next */
res.writeHead(500, 'Internal error');
/* istanbul ignore next */
/* istanbul ignore next */
return res.end();
}
};
Expand Down
4 changes: 2 additions & 2 deletions lib/proxy_manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ var CONFIG_DIR;
// The proxies object on the module stores and exposes all proxies created from configuration
// files in CONFIG_DIR. If a proxy can not be loaded, the config file name will map to the error
// message instead of a proxy object.
//
//
// The properties of this object are updated by the loadConfigFiles method, but this object
// and its contents are externally immutable.
Object.defineProperty(module.exports, 'proxies', { value: {}, enumerable: true } );
Expand Down Expand Up @@ -249,4 +249,4 @@ function loadConfigFiles(cb) {
});
});
});
}
}
2 changes: 1 addition & 1 deletion test/benchmarks/benchmark_proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,4 @@ module.exports = {
proxy_app(req_to_auth, res, function() {});

}
};
};
2 changes: 1 addition & 1 deletion test/config.d/to_port_on_client_proxy_service.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
"from_port": 8282,
"to_port": 8383,
"oauth_secret_dir": "./test/keys/8008/8080/"
}
}
2 changes: 1 addition & 1 deletion test/dynamic_key_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,4 @@ describe('dynamic key loader', function() {
});
});
});
});
});

0 comments on commit 2448c9b

Please sign in to comment.