@@ -124,7 +124,7 @@ describe('supports http with nodejs', function () {
124124 } ;
125125
126126 server = http . createServer ( function ( req , res ) {
127- res . setHeader ( 'Content-Type' , 'application/json;charset=utf-8 ' ) ;
127+ res . setHeader ( 'Content-Type' , 'application/json' ) ;
128128 res . end ( JSON . stringify ( data ) ) ;
129129 } ) . listen ( 4444 , function ( ) {
130130 axios . get ( 'http://localhost:4444/' ) . then ( function ( res ) {
@@ -142,7 +142,7 @@ describe('supports http with nodejs', function () {
142142 } ;
143143
144144 server = http . createServer ( function ( req , res ) {
145- res . setHeader ( 'Content-Type' , 'application/json;charset=utf-8 ' ) ;
145+ res . setHeader ( 'Content-Type' , 'application/json' ) ;
146146 var bomBuffer = Buffer . from ( [ 0xEF , 0xBB , 0xBF ] )
147147 var jsonBuffer = Buffer . from ( JSON . stringify ( data ) ) ;
148148 res . end ( Buffer . concat ( [ bomBuffer , jsonBuffer ] ) ) ;
@@ -247,7 +247,7 @@ describe('supports http with nodejs', function () {
247247 zlib . gzip ( JSON . stringify ( data ) , function ( err , zipped ) {
248248
249249 server = http . createServer ( function ( req , res ) {
250- res . setHeader ( 'Content-Type' , 'application/json;charset=utf-8 ' ) ;
250+ res . setHeader ( 'Content-Type' , 'application/json' ) ;
251251 res . setHeader ( 'Content-Encoding' , 'gzip' ) ;
252252 res . end ( zipped ) ;
253253 } ) . listen ( 4444 , function ( ) {
@@ -262,7 +262,7 @@ describe('supports http with nodejs', function () {
262262
263263 it ( 'should support gunzip error handling' , function ( done ) {
264264 server = http . createServer ( function ( req , res ) {
265- res . setHeader ( 'Content-Type' , 'application/json;charset=utf-8 ' ) ;
265+ res . setHeader ( 'Content-Type' , 'application/json' ) ;
266266 res . setHeader ( 'Content-Encoding' , 'gzip' ) ;
267267 res . end ( 'invalid response' ) ;
268268 } ) . listen ( 4444 , function ( ) {
0 commit comments