SpoonX / aurelia-api

A simple convenience wrapper around aurelia-fetch-client
http://aurelia-api.spoonx.org
MIT License
72 stars 21 forks source link

enable Content-Type header charset #163

Closed yutackall closed 8 years ago

yutackall commented 8 years ago

Content-Type header , in the case described charset, JSON is not sent and query string sent.

code

let headers = {
  headers: {
    'Content-Type': 'application/json; charset=UTF-8'
  }
}
config.registerEndpoint('api', 'http://examle.com', headers);
doktordirk commented 8 years ago

merged https://github.com/SpoonX/aurelia-api/pull/172