|
@@ -66,12 +66,12 @@ router.post('/getTest', function(req, res, next) {
|
|
|
'accessToken': '463e95bdad1a9506bd1b271194f89383'
|
|
|
}
|
|
|
};
|
|
|
- const req1 = http.request(options, (res) => {
|
|
|
+ const req1 = http.request(options, (item) => {
|
|
|
console.log(`statusCode: ${res.statusCode}`);
|
|
|
|
|
|
- res.on('data', (data) => {
|
|
|
+ item.on('data', (data) => {
|
|
|
console.log(data.toString());
|
|
|
- res.end(JSON.stringify(data))
|
|
|
+ item.end(JSON.stringify(data))
|
|
|
});
|
|
|
});
|
|
|
|