From d3f518490d499aaf0d7c3848d09f9309da56cfd0 Mon Sep 17 00:00:00 2001 From: Kristóf Marussy Date: Mon, 17 May 2021 18:45:16 +0200 Subject: Use X-Franz headers to talk to the server (#1429) 1fcfccd broke communication with the internal server by using X-Ferdi headers instead of X-Franz headers on HTTP requests. For compatibility reasons, we retain the X-Franz headers insteaf of X-Ferdi headers in the internal server. This commits reverts the change to the headers to restore internal server functionality. --- src/api/utils/auth.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/api/utils') diff --git a/src/api/utils/auth.js b/src/api/utils/auth.js index 4dbfcd6d4..6dbdeaa7f 100644 --- a/src/api/utils/auth.js +++ b/src/api/utils/auth.js @@ -8,11 +8,11 @@ export const prepareAuthRequest = (options = { method: 'GET' }, auth = true) => mode: 'cors', headers: Object.assign({ 'Content-Type': 'application/json', - 'X-Ferdi-Source': 'desktop', - 'X-Ferdi-Version': app.getVersion(), - 'X-Ferdi-platform': process.platform, - 'X-Ferdi-Timezone-Offset': new Date().getTimezoneOffset(), - 'X-Ferdi-System-Locale': app.getLocale(), + 'X-Franz-Source': 'desktop', + 'X-Franz-Version': app.getVersion(), + 'X-Franz-platform': process.platform, + 'X-Franz-Timezone-Offset': new Date().getTimezoneOffset(), + 'X-Franz-System-Locale': app.getLocale(), }, options.headers), }); -- cgit v1.2.3-54-g00ecf