Skip to content

Commit

Permalink
Remove ES6 syntax not supported by node v4
Browse files Browse the repository at this point in the history
  • Loading branch information
devinivy committed Mar 9, 2017
1 parent 74ed17e commit dab05ad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ internals.express = (route, options) => {

return (request, reply) => {

const { req, res } = request.raw;
const req = request.raw.req;
const res = request.raw.res;

req._hecks = { request };
res._hecks = {};
Expand Down

0 comments on commit dab05ad

Please sign in to comment.