@@ -34,7 +34,7 @@ dc.subscribe('quic.stream.info', mustCall((msg) => {
3434 assert . ok ( msg . stream , 'stream.info should include stream' ) ;
3535 assert . ok ( msg . session , 'stream.info should include session' ) ;
3636 assert . ok ( msg . headers , 'stream.info should include headers' ) ;
37- assert . strictEqual ( msg . headers [ ':status' ] , ' 103' ) ;
37+ assert . strictEqual ( msg . headers [ ':status' ] , 103 ) ;
3838} ) ) ;
3939
4040// quic.stream.headers also fires for the final response headers.
@@ -89,12 +89,12 @@ const stream = await clientSession.createBidirectionalStream({
8989 ':authority' : 'localhost' ,
9090 } ,
9191 oninfo : mustCall ( function ( headers ) {
92- assert . strictEqual ( headers [ ':status' ] , ' 103' ) ;
92+ assert . strictEqual ( headers [ ':status' ] , 103 ) ;
9393 assert . strictEqual ( headers . link , '</style.css>; rel=preload; as=style' ) ;
9494 clientInfoReceived . resolve ( ) ;
9595 } ) ,
9696 onheaders : mustCall ( function ( headers ) {
97- assert . strictEqual ( headers [ ':status' ] , ' 200' ) ;
97+ assert . strictEqual ( headers [ ':status' ] , 200 ) ;
9898 assert . strictEqual ( headers [ 'content-type' ] , 'text/plain' ) ;
9999 clientHeadersReceived . resolve ( ) ;
100100 } ) ,
@@ -107,7 +107,7 @@ const body = await bytes(stream);
107107assert . strictEqual ( decoder . decode ( body ) , responseBody ) ;
108108
109109// stream.headers should return the final (initial) headers, not 1xx.
110- assert . strictEqual ( stream . headers [ ':status' ] , ' 200' ) ;
110+ assert . strictEqual ( stream . headers [ ':status' ] , 200 ) ;
111111
112112await Promise . all ( [ stream . closed , serverDone . promise ] ) ;
113113await clientSession . close ( ) ;
0 commit comments