@@ -19,13 +19,12 @@ const server = createServer(
1919 'Host' , host ,
2020 'Transfer-Encoding' , 'chunked' ,
2121 ] ) ;
22- assert . deepStrictEqual ( req . headers , { __proto__ : null ,
23- 'connection' : 'close' ,
24- 'x-req-a' : 'eee, fff, ggg, hhh' ,
25- 'x-req-b' : 'iii; jjj; kkk; lll' ,
26- host,
27- 'transfer-encoding' : 'chunked'
28- } ) ;
22+ assert . deepStrictEqual ( req . headers , { '__proto__' : null ,
23+ 'connection' : 'close' ,
24+ 'x-req-a' : 'eee, fff, ggg, hhh' ,
25+ 'x-req-b' : 'iii; jjj; kkk; lll' ,
26+ host,
27+ 'transfer-encoding' : 'chunked' } ) ;
2928 assert . deepStrictEqual ( req . headersDistinct , Object . assign ( { __proto__ : null } , {
3029 'connection' : [ 'close' ] ,
3130 'x-req-a' : [ 'eee' , 'fff' , 'ggg' , 'hhh' ] ,
@@ -41,7 +40,7 @@ const server = createServer(
4140 'X-req-Y' , 'zzz; www' ,
4241 ] ) ;
4342 assert . deepStrictEqual (
44- req . trailers , { __proto__ : null , 'x-req-x' : 'xxx, yyy' , 'x-req-y' : 'zzz; www' }
43+ req . trailers , { ' __proto__' : null , 'x-req-x' : 'xxx, yyy' , 'x-req-y' : 'zzz; www' }
4544 ) ;
4645 assert . deepStrictEqual (
4746 req . trailersDistinct ,
@@ -124,14 +123,13 @@ server.listen(0, common.mustCall(() => {
124123 'x-res-d' , 'JJJ; KKK; LLL' ,
125124 'Transfer-Encoding' , 'chunked' ,
126125 ] ) ;
127- assert . deepStrictEqual ( res . headers , { __proto__ : null ,
128- 'x-res-a' : 'AAA, BBB, CCC' ,
129- 'x-res-b' : 'DDD; EEE; FFF; GGG' ,
130- 'connection' : 'close' ,
131- 'x-res-c' : 'HHH, III' ,
132- 'x-res-d' : 'JJJ; KKK; LLL' ,
133- 'transfer-encoding' : 'chunked'
134- } ) ;
126+ assert . deepStrictEqual ( res . headers , { '__proto__' : null ,
127+ 'x-res-a' : 'AAA, BBB, CCC' ,
128+ 'x-res-b' : 'DDD; EEE; FFF; GGG' ,
129+ 'connection' : 'close' ,
130+ 'x-res-c' : 'HHH, III' ,
131+ 'x-res-d' : 'JJJ; KKK; LLL' ,
132+ 'transfer-encoding' : 'chunked' } ) ;
135133 assert . deepStrictEqual ( res . headersDistinct , Object . assign ( { __proto__ : null } , {
136134 'x-res-a' : [ 'AAA' , 'BBB' , 'CCC' ] ,
137135 'x-res-b' : [ 'DDD; EEE; FFF; GGG' ] ,
@@ -149,7 +147,7 @@ server.listen(0, common.mustCall(() => {
149147 ] ) ;
150148 assert . deepStrictEqual (
151149 res . trailers ,
152- { __proto__ : null , 'x-res-x' : 'XXX, YYY' , 'x-res-y' : 'ZZZ; WWW' }
150+ { ' __proto__' : null , 'x-res-x' : 'XXX, YYY' , 'x-res-y' : 'ZZZ; WWW' }
153151 ) ;
154152 assert . deepStrictEqual (
155153 res . trailersDistinct ,
0 commit comments