Skip to content

Commit

Permalink
log stream
Browse files Browse the repository at this point in the history
  • Loading branch information
cgawron committed Mar 13, 2024
1 parent cf3f267 commit a4e6760
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,13 +126,6 @@ app.get('/user', (req, res) => {
});

app.use(`${PREFIX}*`,
(req, res, next) => {
console.log('Res:', res.headers);
res.on('data', (data) => {
console.log('Data:', data);
})
next();
},
proxy(API_URL, {
https: true,
proxyReqPathResolver: function (req) {
Expand All @@ -153,6 +146,8 @@ app.use(`${PREFIX}*`,
console.log('body', srcReq.body);
return proxyReqOpts;
}
}).on('data', (data) => {
console.log('Data:', data);
})
);

Expand Down

0 comments on commit a4e6760

Please sign in to comment.