mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-26 12:21:36 +03:00
Clean up API request headers
This commit is contained in:
parent
01f2211c11
commit
8d9be438a6
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user