You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
尝试修改增加了https的依赖, 但是修改后提示错误: The "listener" argument must be of type Function. Received type object".
因为不熟悉node,也没有相关的开发环境,只能到这了,下面是修改的代码片段,修改没成功就不推请求了....
consthttps=require('https')...requestInfo(ops,path,method){returnnewPromise((resolve,reject)=>{letreq='';varclient=http;// You can use url.protocol as well if(ops.host.toString().indexOf("https")===0){client=https;}lethttp_client=client.request(ops.host+path,{method: method},
...
Activity
jnadorg commentedon Mar 15, 2019
我这没有相关的工具链,原计划是希望作者可以fix这个问题.
netscrt commentedon Jul 13, 2019
我这边测试成功了,node版本是11.10.0
zhamdoctor commentedon Aug 28, 2020
怎么搞https的