2
0
mirror of https://github.com/tenrok/axios.git synced 2026-05-15 11:59:42 +03:00

Fixing instance.defaults.headers type (#4557)

* Fixing instance.defaults.headers type

* remove console.log()

Co-authored-by: Jay <jasonsaayman@gmail.com>
This commit is contained in:
Spencer
2022-05-09 12:12:53 -05:00
committed by GitHub
parent 4c898f8665
commit 9f6ba5ee43
2 changed files with 8 additions and 0 deletions
+2
View File
@@ -251,6 +251,8 @@ instance1.post('/user', { foo: 'bar' }, { headers: { 'X-FOO': 'bar' } })
// Defaults
axios.defaults.headers['X-FOO'];
axios.defaults.baseURL = 'https://api.example.com/';
axios.defaults.headers.common['Authorization'] = 'token';
axios.defaults.headers.post['X-FOO'] = 'bar';