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

Commit

Permalink
Clean a bunch of stray whitespace.
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanbreen committed Jan 18, 2015
1 parent d86b473 commit f17b908
Show file tree
Hide file tree
Showing 13 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion lib/proxy/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ Proxy.prototype.start = function(cb) {
var request_sanity_validator = require('./validators/request_sanity_validator.js')(this_obj);
var url_length_validator = require('./validators/url_length_validator.js')(this_obj);
var whitelist_validator = require('./validators/whitelist_validator.js')(this_obj);

// Mutators
var form_parser = connect.urlencoded();
var forward_header_mutator = require('./mutators/forward_header_mutator.js')(this_obj);
Expand Down
2 changes: 1 addition & 1 deletion lib/proxy/messages/bad_request.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ module.exports = function(logger, req, res, message) {

// Return false from this method so it can signal to a calling function that the request failed.
return false;
};
};
2 changes: 1 addition & 1 deletion lib/proxy/messages/unauthorized.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ module.exports = function(logger, req, res, message) {

// Return false from this method so it can signal to a calling function that the request failed.
return false;
};
};
2 changes: 1 addition & 1 deletion lib/proxy/mutators/forward_header_mutator.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@ module.exports = function() {

next();
};
};
};
2 changes: 1 addition & 1 deletion lib/proxy/mutators/oauth_param_collector.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,4 @@ module.exports = function() {

next();
}
};
};
2 changes: 1 addition & 1 deletion lib/proxy/mutators/restreamer.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ module.exports = function() {
next();
}
};
}
}
2 changes: 1 addition & 1 deletion lib/proxy/oauth_constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ var REQUIRED_OAUTH_PARAMS_COUNT = exports.REQUIRED_OAUTH_PARAMS_COUNT = REQUIRED
var OAUTH_TIMESTAMP_MAX_AGE = exports.OAUTH_TIMESTAMP_MAX_AGE = 5*60*1000;

// Only allow URLs that are 16kB or fewer bytes in length.
var MAXIMUM_URL_LENGTH = exports.MAXIMUM_URL_LENGTH = 16*1024;
var MAXIMUM_URL_LENGTH = exports.MAXIMUM_URL_LENGTH = 16*1024;
2 changes: 1 addition & 1 deletion lib/proxy/quotas.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ function ProxyQuotas(config) {
}

// Expose Quota class.
module.exports = ProxyQuotas;
module.exports = ProxyQuotas;
4 changes: 2 additions & 2 deletions lib/proxy/validators/oauth_timestamp_validator.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ module.exports = function(proxy) {
if (Math.abs(now - timestamp) > OAUTH_TIMESTAMP_MAX_AGE) {
return unauthorized(proxy.logger, req, res, 'Request expired');
}

// If we got here, we know the timestamp is valid and we can move on with our lives.
next();
};
};
};
6 changes: 3 additions & 3 deletions lib/proxy/validators/quota_validator.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ module.exports = function(proxy) {
}

// Because this validtor runs after oauth_param_sanity_validator, we know that the consumer key is present in
// our keystore. Otherwise, this request would already have been rejected.
// our keystore. Otherwise, this request would already have been rejected.
var key = proxy.keystore.keys[req.oauth_params[oauth_constants.OAUTH_CONSUMER_KEY]];

// Inccrement hit counter for key.
key.hits += 1;

Expand All @@ -49,4 +49,4 @@ module.exports = function(proxy) {

next();
};
};
};
2 changes: 1 addition & 1 deletion lib/proxy/validators/request_sanity_validator.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ module.exports = function(proxy) {

next();
};
};
};
2 changes: 1 addition & 1 deletion lib/proxy/validators/url_length_validator.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ module.exports = function() {
res.writeHead(413, "URL exceeds maximum allowed length for oauth_reverse_proxy");
res.end();
};
};
};
2 changes: 1 addition & 1 deletion lib/proxy/validators/whitelist_validator.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ module.exports = function(proxy){

return next();
};
};
};

0 comments on commit f17b908

Please sign in to comment.