From 8d9be438a64ed7735ac47611e97573735a3a2bd4 Mon Sep 17 00:00:00 2001 From: Kevin Ansfield Date: Thu, 24 Aug 2017 13:04:54 +0100 Subject: [PATCH] Clean up API request headers --- ghost/admin/app/services/unsplash.js | 1 + 1 file changed, 1 insertion(+) diff --git a/ghost/admin/app/services/unsplash.js b/ghost/admin/app/services/unsplash.js index 40d3e4d1ef..38339832a8 100644 --- a/ghost/admin/app/services/unsplash.js +++ b/ghost/admin/app/services/unsplash.js @@ -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))