aboutsummaryrefslogtreecommitdiffstats
path: root/src/ng/http.js
diff options
context:
space:
mode:
authorVojta Jina2012-06-07 17:10:39 -0700
committerIgor Minar2012-06-08 16:07:15 -0700
commit10f80d7d2918f98262090b425ecc294d9518aa7e (patch)
tree149296c2434abffc2f1fc933810b3659c62907ab /src/ng/http.js
parentc3a41ff9fefe894663c4d4f40a83794521deb14f (diff)
downloadangular.js-10f80d7d2918f98262090b425ecc294d9518aa7e.tar.bz2
fix($http): add utf-8 to default Content-Type header (post/put)
This fixes special characters issue with MongoLab. https://groups.google.com/d/topic/angular/1T6h7bfZ7Rs/discussion
Diffstat (limited to 'src/ng/http.js')
-rw-r--r--src/ng/http.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ng/http.js b/src/ng/http.js
index 19b7d246..0dd4deef 100644
--- a/src/ng/http.js
+++ b/src/ng/http.js
@@ -111,8 +111,8 @@ function $HttpProvider() {
'Accept': 'application/json, text/plain, */*',
'X-Requested-With': 'XMLHttpRequest'
},
- post: {'Content-Type': 'application/json'},
- put: {'Content-Type': 'application/json'}
+ post: {'Content-Type': 'application/json;charset=utf-8'},
+ put: {'Content-Type': 'application/json;charset=utf-8'}
}
};