Skip to content

Instantly share code, notes, and snippets.

@rodmcnew
Created October 29, 2021 23:17
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
express js dump response body.js
app.use('/oidc',function (req, res, next) {
const oSend = res.end;res.end = (a,b,c) => {console.log('rod send', a,b,c);res.send=oSend;res.send(a,b,c)};
const oAppend = res.end;res.end = (a,b,c) => {console.log('rod append', a,b,c);res.append=oAppend;res.append(a,b,c)};
const oEnd = res.end;res.end = (a,b,c) => {console.log('rod end', a,b,c);res.end=oEnd;res.end(a,b,c)};
oidc.callback()(req,res,next);
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment