@@ -124,7 +124,7 @@ describe('supports http with nodejs', function () {
124
124
} ;
125
125
126
126
server = http . createServer ( function ( req , res ) {
127
- res . setHeader ( 'Content-Type' , 'application/json;charset=utf-8 ' ) ;
127
+ res . setHeader ( 'Content-Type' , 'application/json' ) ;
128
128
res . end ( JSON . stringify ( data ) ) ;
129
129
} ) . listen ( 4444 , function ( ) {
130
130
axios . get ( 'http://localhost:4444/' ) . then ( function ( res ) {
@@ -142,7 +142,7 @@ describe('supports http with nodejs', function () {
142
142
} ;
143
143
144
144
server = http . createServer ( function ( req , res ) {
145
- res . setHeader ( 'Content-Type' , 'application/json;charset=utf-8 ' ) ;
145
+ res . setHeader ( 'Content-Type' , 'application/json' ) ;
146
146
var bomBuffer = Buffer . from ( [ 0xEF , 0xBB , 0xBF ] )
147
147
var jsonBuffer = Buffer . from ( JSON . stringify ( data ) ) ;
148
148
res . end ( Buffer . concat ( [ bomBuffer , jsonBuffer ] ) ) ;
@@ -247,7 +247,7 @@ describe('supports http with nodejs', function () {
247
247
zlib . gzip ( JSON . stringify ( data ) , function ( err , zipped ) {
248
248
249
249
server = http . createServer ( function ( req , res ) {
250
- res . setHeader ( 'Content-Type' , 'application/json;charset=utf-8 ' ) ;
250
+ res . setHeader ( 'Content-Type' , 'application/json' ) ;
251
251
res . setHeader ( 'Content-Encoding' , 'gzip' ) ;
252
252
res . end ( zipped ) ;
253
253
} ) . listen ( 4444 , function ( ) {
@@ -262,7 +262,7 @@ describe('supports http with nodejs', function () {
262
262
263
263
it ( 'should support gunzip error handling' , function ( done ) {
264
264
server = http . createServer ( function ( req , res ) {
265
- res . setHeader ( 'Content-Type' , 'application/json;charset=utf-8 ' ) ;
265
+ res . setHeader ( 'Content-Type' , 'application/json' ) ;
266
266
res . setHeader ( 'Content-Encoding' , 'gzip' ) ;
267
267
res . end ( 'invalid response' ) ;
268
268
} ) . listen ( 4444 , function ( ) {
0 commit comments