gopeed icon indicating copy to clipboard operation
gopeed copied to clipboard

[BUG][插件扩展] superagent 无法正常工作

Open foxxorcat opened this issue 8 months ago • 5 comments

Description(required)

  1. 实现的XMLHttpRequest中的getResponseHeader方法有误,搜索的报文名应该不区分大小写。 go默认是大写开头,superagent用的是全小写。(使用axios时设置cookie头会报错可能是这个问题???
  2. 只实现 globalThis ,但superagent使用的是window或self。(这个问题应该是superagent的???

暂时解决方法

  1. 指定 getXHR
superagent.getXHR = () => new XMLHttpRequest()

App Version(required)

1.5.7

foxxorcat avatar Jun 11 '24 03:06 foxxorcat