mirror of
https://github.com/http-party/node-http-proxy.git
synced 2025-12-08 20:59:18 +00:00
[fix] finished jshint fixes
This commit is contained in:
parent
17399e7c3e
commit
455f97e14c
@ -57,14 +57,13 @@ function createRightProxy(type) {
|
||||
|
||||
options.ee.emit(ev + 'begin', req, res);
|
||||
|
||||
['target', 'forward'].forEach(
|
||||
function(e) {
|
||||
if (typeof options[e] === 'string')
|
||||
options[e] = parse_url(options[e]);
|
||||
['target', 'forward'].forEach(function(e) {
|
||||
if (typeof options[e] === 'string')
|
||||
options[e] = parse_url(options[e]);
|
||||
});
|
||||
|
||||
passes.some(function(pass) {
|
||||
var evnt = ev + pass.name.toLowerCase() + ':';
|
||||
var evnt = ev + pass.name.toLowerCase() + ':', val;
|
||||
|
||||
/**
|
||||
* Call of passes functions
|
||||
@ -76,7 +75,7 @@ function createRightProxy(type) {
|
||||
*/
|
||||
|
||||
options.ee.emit(evnt + 'begin', req, res);
|
||||
var val = pass(req, res, options, head);
|
||||
val = pass(req, res, options, head);
|
||||
options.ee.emit(evnt + 'end');
|
||||
|
||||
return val;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user