Skip to content

crawlData配置问题 #43

@linpasserby

Description

@linpasserby

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

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions