@@ -47,8 +47,8 @@ server.on('listening', function() {
47
47
http . get ( { port : this . address ( ) . port , path : '/one' } , function ( res ) {
48
48
// set-cookie headers are always return in an array.
49
49
// even if there is only one.
50
- assert . deepStrictEqual ( [ 'A' ] , res . headers [ 'set-cookie' ] ) ;
51
- assert . strictEqual ( 'text/plain' , res . headers [ 'content-type' ] ) ;
50
+ assert . deepStrictEqual ( res . headers [ 'set-cookie' ] , [ 'A '] ) ;
51
+ assert . strictEqual ( res . headers [ 'content-type' ] , 'text/plain' ) ;
52
52
53
53
res . on ( 'data' , function ( chunk ) {
54
54
console . log ( chunk . toString ( ) ) ;
@@ -62,8 +62,8 @@ server.on('listening', function() {
62
62
// two set-cookie headers
63
63
64
64
http . get ( { port : this . address ( ) . port , path : '/two' } , function ( res ) {
65
- assert . deepStrictEqual ( [ 'A' , 'B' ] , res . headers [ 'set-cookie '] ) ;
66
- assert . strictEqual ( 'text/plain' , res . headers [ 'content-type' ] ) ;
65
+ assert . deepStrictEqual ( res . headers [ 'set-cookie' ] , [ 'A' , 'B '] ) ;
66
+ assert . strictEqual ( res . headers [ 'content-type' ] , 'text/plain' ) ;
67
67
68
68
res . on ( 'data' , function ( chunk ) {
69
69
console . log ( chunk . toString ( ) ) ;
0 commit comments