我有一个超级代理,我正在尝试设置内容类型。
return superagent.post(url)
.send(request)
.type('application/ocsp-request')
.end(function(err, res) {
});
但是,我不断在它说的地方遇到这个崩溃
TypeError:第一个参数必须是字符串或缓冲区
我想知道是否有人有任何想法。
当我删除类型字段时,它就会通过。
我有一个超级代理,我正在尝试设置内容类型。
return superagent.post(url)
.send(request)
.type('application/ocsp-request')
.end(function(err, res) {
});
但是,我不断在它说的地方遇到这个崩溃
TypeError:第一个参数必须是字符串或缓冲区
我想知道是否有人有任何想法。
当我删除类型字段时,它就会通过。