Skip to content

Commit

Permalink
app: set default axios header
Browse files Browse the repository at this point in the history
  • Loading branch information
DIYgod committed Aug 20, 2018
1 parent 3c9003e commit 0dec074
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions utils/axios.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,7 @@ axiosRetry(axios, {
},
});

axios.defaults.headers.common['User-Agent'] = config.ua;
axios.defaults.headers.common['X-APP'] = 'RSSHub';

module.exports = axios;

0 comments on commit 0dec074

Please sign in to comment.