@@ -623,7 +623,7 @@ dev('should not rely on initial Cache fill', async () => {
623
623
624
624
// matches() helper will work but assert here
625
625
let res = await server . send ( 'GET' , '/foo.bar.js' ) ;
626
- assert . is ( res . headers [ 'content-type' ] , 'application /javascript' ) ;
626
+ assert . is ( res . headers [ 'content-type' ] , 'text /javascript' ) ;
627
627
assert . is ( res . headers [ 'content-length' ] , '11' ) ;
628
628
assert . is ( res . data , 'hello there' ) ;
629
629
assert . is ( res . statusCode , 200 ) ;
@@ -746,7 +746,7 @@ brotli('should require "Accept-Encoding" match to do anything', async () => {
746
746
747
747
// the `matches` helper assumes wrong mime type
748
748
let res = await server . send ( 'GET' , '/data.js' , { headers } ) ;
749
- assert . is ( res . headers [ 'content-type' ] , 'application /javascript' ) ;
749
+ assert . is ( res . headers [ 'content-type' ] , 'text /javascript' ) ;
750
750
assert . is ( res . headers [ 'content-encoding' ] , 'br' ) ;
751
751
assert . is ( res . data , 'brotli js file\n' ) ;
752
752
assert . is ( res . statusCode , 200 ) ;
@@ -785,7 +785,7 @@ brotli('should be preferred when "Accept-Encoding" allows both', async () => {
785
785
assert . is ( res1 . statusCode , 200 ) ;
786
786
787
787
let res2 = await server . send ( 'GET' , '/data.js' , { headers } ) ;
788
- assert . is ( res2 . headers [ 'content-type' ] , 'application /javascript' ) ;
788
+ assert . is ( res2 . headers [ 'content-type' ] , 'text /javascript' ) ;
789
789
assert . is ( res2 . headers [ 'content-encoding' ] , 'br' ) ;
790
790
assert . is ( res2 . data , 'brotli js file\n' ) ;
791
791
assert . is ( res2 . statusCode , 200 ) ;
@@ -811,7 +811,7 @@ gzip('should require "Accept-Encoding" match to do anything', async () => {
811
811
812
812
// the `matches` helper assumes wrong mime type
813
813
let res = await server . send ( 'GET' , '/data.js' , { headers } ) ;
814
- assert . is ( res . headers [ 'content-type' ] , 'application /javascript' ) ;
814
+ assert . is ( res . headers [ 'content-type' ] , 'text /javascript' ) ;
815
815
assert . is ( res . headers [ 'content-encoding' ] , 'gzip' ) ;
816
816
assert . is ( res . data , 'gzip js file\n' ) ;
817
817
assert . is ( res . statusCode , 200 ) ;
@@ -850,7 +850,7 @@ gzip('should defer to brotli when "Accept-Encoding" allows both', async () => {
850
850
assert . is ( res1 . statusCode , 200 ) ;
851
851
852
852
let res2 = await server . send ( 'GET' , '/data.js' , { headers } ) ;
853
- assert . is ( res2 . headers [ 'content-type' ] , 'application /javascript' ) ;
853
+ assert . is ( res2 . headers [ 'content-type' ] , 'text /javascript' ) ;
854
854
assert . is ( res2 . headers [ 'content-encoding' ] , 'br' ) ;
855
855
assert . is ( res2 . data , 'brotli js file\n' ) ;
856
856
assert . is ( res2 . statusCode , 200 ) ;
0 commit comments