File tree 1 file changed +5
-6
lines changed
1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -57,14 +57,13 @@ function createRightProxy(type) {
57
57
58
58
options . ee . emit ( ev + 'begin' , req , res ) ;
59
59
60
- [ 'target' , 'forward' ] . forEach (
61
- function ( e ) {
62
- if ( typeof options [ e ] === 'string' )
63
- options [ e ] = parse_url ( options [ e ] ) ;
60
+ [ 'target' , 'forward' ] . forEach ( function ( e ) {
61
+ if ( typeof options [ e ] === 'string' )
62
+ options [ e ] = parse_url ( options [ e ] ) ;
64
63
} ) ;
65
64
66
65
passes . some ( function ( pass ) {
67
- var evnt = ev + pass . name . toLowerCase ( ) + ':' ;
66
+ var evnt = ev + pass . name . toLowerCase ( ) + ':' , val ;
68
67
69
68
/**
70
69
* Call of passes functions
@@ -76,7 +75,7 @@ function createRightProxy(type) {
76
75
*/
77
76
78
77
options . ee . emit ( evnt + 'begin' , req , res ) ;
79
- var val = pass ( req , res , options , head ) ;
78
+ val = pass ( req , res , options , head ) ;
80
79
options . ee . emit ( evnt + 'end' ) ;
81
80
82
81
return val ;
You can’t perform that action at this time.
0 commit comments