【发布时间】:2015-04-10 07:30:18
【问题描述】:
var options = {
url: 'some url',
headers:{
'Authorization': 'some auth'
'Content-Type': 'application/json'
},
body: JSON.stringify(req.body),
json: true
};
var callback = function(err, response, body){
///...some nice stuff
};
request(options, callback)
响应中的状态码是 400。 如果我使用邮递员提出相同的请求,一切正常。 有谁知道是什么问题?
【问题讨论】:
-
解决了!我的授权标头中有错字。