fix axios params error (#436)

axios 中设置 headers 的参数应该是 `headers` 而不是 `header`
This commit is contained in:
imlonghao
2018-08-08 17:32:46 +08:00
committed by DIYgod
parent 4e94f21eed
commit 09c92b363e
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ module.exports = async (ctx) => {
filter_locale: filter_locale,
sort: 'updated',
},
header: {
headers: {
'User-Agent': config.ua,
},
});
+1 -1
View File
@@ -6,7 +6,7 @@ module.exports = async (ctx) => {
const res = await axios({
method: 'get',
url: 'https://cs.scnu.edu.cn/xueshenggongzuo/chengchangfazhan/kejichuangxin/',
header: {
headers: {
'User-Agent': config.ua,
Referer: 'https://cs.scnu.edu.cn',
},
+1 -1
View File
@@ -6,7 +6,7 @@ module.exports = async (ctx) => {
const res = await axios({
method: 'get',
url: 'https://jw.scnu.edu.cn/ann/index.html',
header: {
headers: {
'User-Agent': config.ua,
Referer: 'https://jw.scnu.edu.cn',
},
+1 -1
View File
@@ -6,7 +6,7 @@ module.exports = async (ctx) => {
const res = await axios({
method: 'get',
url: 'https://lib.scnu.edu.cn/news/zuixingonggao',
header: {
headers: {
'User-Agent': config.ua,
Referer: 'https://lib.scnu.edu.cn',
},