Clean up API request headers

This commit is contained in:
Kevin Ansfield 2017-08-24 13:04:54 +01:00
parent 01f2211c11
commit 8d9be438a6

View File

@ -175,6 +175,7 @@ export default Service.extend({
headers.Authorization = `Client-ID ${this.get('applicationId')}`;
headers['Accept-Version'] = API_VERSION;
headers['API-User-Agent'] = 'Ghost';
return fetch(url, {headers})
.then((response) => this._checkStatus(response))