File tree 1 file changed +8
-8
lines changed
1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -12,16 +12,16 @@ let external;
12
12
13
13
// Proxy server
14
14
const server = createServer ( common . mustCall ( ( req , res ) => {
15
- get ( `http://127.0.0.1:${ internal . address ( ) . port } ` , common . mustCall ( ( inner ) => {
16
- const listener = common . mustCall ( ( ) => {
17
- assert . strictEqual ( res . writable , true ) ;
18
- } ) ;
15
+ const listener = common . mustCall ( ( ) => {
16
+ assert . strictEqual ( res . writable , true ) ;
17
+ } ) ;
19
18
20
- // on CentOS 5, 'finish' is emitted
21
- res . on ( 'finish' , listener ) ;
22
- // everywhere else, 'close' is emitted
23
- res . on ( 'close' , listener ) ;
19
+ // on CentOS 5, 'finish' is emitted
20
+ res . on ( 'finish' , listener ) ;
21
+ // everywhere else, 'close' is emitted
22
+ res . on ( 'close' , listener ) ;
24
23
24
+ get ( `http://127.0.0.1:${ internal . address ( ) . port } ` , common . mustCall ( ( inner ) => {
25
25
inner . pipe ( res ) ;
26
26
} ) ) ;
27
27
} ) ) . listen ( 0 , ( ) => {
You can’t perform that action at this time.
0 commit comments