-
Notifications
You must be signed in to change notification settings - Fork 108
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Bug 预期
在我使用crawlData爬取接口的时候,配置headers的Content-Type为application/x-www-form-urlencoded,被替换成application/json
最小可重复的例子
const targets = {
url: "https://glxy.mot.gov.cn/company/getCompanyAptitude.do",
method: "POST",
headers: {
"Content-Type": "application/x-www-form-urlencoded;charset=UTF-8",
},
data: Qs.stringify({ type: 2 }),
};
const res = await myXCrawl.crawlData(targets);
报错信息
无报错
x-crawl 版本
7.1.0
Node 版本
18.16.0
包管理器
npm
包管理器版本
9.5.1
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working