Created
December 24, 2017 03:50
-
-
Save leopku/9c05ff9e484c9c4a158d8721c8601bbb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module.exports = { | |
| *beforeSendResponse(req, res) { | |
| let { response } = res; | |
| const { body } = response; | |
| let document = body.toString(); | |
| response.body = new Buffer(document); | |
| return { response }; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment