<commit_before>var util = require('../../util');

module.exports = function(req, res, next) {
	var options = req.options;
	if (options.hostname || options.protocol == 'http:') {
		return next();
	}
	delete options.protocol;
	util.proxyHttps(req, function(err, _res) {
		err ? req.emit('error', err) : res.response(_res);
	});
};<commit_msg>https proxy<commit_after>var util = require('../../util');

module.exports = function(req, res, next) {
	var options = req.options;
	if (options.hostname || options.protocol == 'http:') {
		return next();
	}
	delete options.protocol;
	util.proxyHttps(req, function(err, _res) {
		err ? res.emit('error', err) : res.response(_res);
	});
};
{'fraction_non_alphanumeric': 0.1976401179941003, 'fraction_numerical': 0.0, 'mean_word_length': 4.388888888888889, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2229928', 'n_tokens_mistral': 236, 'n_tokens_neox': 233, 'n_words': 51}