fix: add automatisch user-agent to Flickr
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import oauthClient from './oauth-client.js';
|
||||
import appConfig from '../../../config/app.js';
|
||||
|
||||
const addAuthHeader = ($, requestConfig) => {
|
||||
const { url, method, data, params } = requestConfig;
|
||||
@@ -26,6 +27,9 @@ const addAuthHeader = ($, requestConfig) => {
|
||||
);
|
||||
|
||||
requestConfig.headers.Authorization = authHeader.Authorization;
|
||||
requestConfig.headers[
|
||||
'User-Agent'
|
||||
] = `web:automatisch:${appConfig.version}`;
|
||||
|
||||
return requestConfig;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user