diff options
Diffstat (limited to 'test/ng/httpSpec.js')
| -rw-r--r-- | test/ng/httpSpec.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ng/httpSpec.js b/test/ng/httpSpec.js index 9c01db65..bb4de3c1 100644 --- a/test/ng/httpSpec.js +++ b/test/ng/httpSpec.js @@ -384,7 +384,7 @@ describe('$http', function() { $httpBackend.expect('POST', '/url', 'messageBody', function(headers) { return headers['Accept'] == 'application/json, text/plain, */*' && headers['X-Requested-With'] == 'XMLHttpRequest' && - headers['Content-Type'] == 'application/json'; + headers['Content-Type'] == 'application/json;charset=utf-8'; }).respond(''); $http({url: '/url', method: 'POST', headers: {}, data: 'messageBody'}); @@ -396,7 +396,7 @@ describe('$http', function() { $httpBackend.expect('PUT', '/url', 'messageBody', function(headers) { return headers['Accept'] == 'application/json, text/plain, */*' && headers['X-Requested-With'] == 'XMLHttpRequest' && - headers['Content-Type'] == 'application/json'; + headers['Content-Type'] == 'application/json;charset=utf-8'; }).respond(''); $http({url: '/url', method: 'PUT', headers: {}, data: 'messageBody'}); |
