Permalink
Browse files

fix(rest): enable content- type charset

  • Loading branch information...
yutackall authored and doktordirk committed Sep 7, 2016
1 parent 31cc3cd commit f5f4aec542952c5d80f943c15276a51867e30964
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/rest.js
@@ -59,7 +59,7 @@ export class Rest {
let contentType = requestOptions.headers['Content-Type'] || requestOptions.headers['content-type'];

if (typeof body === 'object' && body !== null && contentType) {
requestOptions.body = contentType.toLowerCase() === 'application/json'
requestOptions.body = (/^application\/json/).test(contentType.toLowerCase())
? JSON.stringify(body)
: buildQueryString(body);
}

0 comments on commit f5f4aec

Please sign in to comment.