Skip to content

Commit 0d5faf5

Browse files
committed
fix axios headers
1 parent a7bac98 commit 0d5faf5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

axios.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const axios = require('axios');
22

3-
axios.get('https://localhost:3000')
3+
axios.get('http://localhost:3000', { headers: { 'Accept': 'text/html, text/plain, application/json' } })
44
.then((response) => {
55
console.log(response)
66
})

0 commit comments

Comments
 (0)