This repository was archived by the owner on Apr 12, 2024. It is now read-only.
File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -111,8 +111,8 @@ function $HttpProvider() {
111
111
'Accept' : 'application/json, text/plain, */*' ,
112
112
'X-Requested-With' : 'XMLHttpRequest'
113
113
} ,
114
- post : { 'Content-Type' : 'application/json' } ,
115
- put : { 'Content-Type' : 'application/json' }
114
+ post : { 'Content-Type' : 'application/json;charset=utf-8 ' } ,
115
+ put : { 'Content-Type' : 'application/json;charset=utf-8 ' }
116
116
}
117
117
} ;
118
118
Original file line number Diff line number Diff line change @@ -384,7 +384,7 @@ describe('$http', function() {
384
384
$httpBackend . expect ( 'POST' , '/url' , 'messageBody' , function ( headers ) {
385
385
return headers [ 'Accept' ] == 'application/json, text/plain, */*' &&
386
386
headers [ 'X-Requested-With' ] == 'XMLHttpRequest' &&
387
- headers [ 'Content-Type' ] == 'application/json' ;
387
+ headers [ 'Content-Type' ] == 'application/json;charset=utf-8 ' ;
388
388
} ) . respond ( '' ) ;
389
389
390
390
$http ( { url : '/url' , method : 'POST' , headers : { } , data : 'messageBody' } ) ;
@@ -396,7 +396,7 @@ describe('$http', function() {
396
396
$httpBackend . expect ( 'PUT' , '/url' , 'messageBody' , function ( headers ) {
397
397
return headers [ 'Accept' ] == 'application/json, text/plain, */*' &&
398
398
headers [ 'X-Requested-With' ] == 'XMLHttpRequest' &&
399
- headers [ 'Content-Type' ] == 'application/json' ;
399
+ headers [ 'Content-Type' ] == 'application/json;charset=utf-8 ' ;
400
400
} ) . respond ( '' ) ;
401
401
402
402
$http ( { url : '/url' , method : 'PUT' , headers : { } , data : 'messageBody' } ) ;
You can’t perform that action at this time.
0 commit comments