From a6d25c5e91910859f7bc491f801d8d3246b6c78e Mon Sep 17 00:00:00 2001 From: Emanuel Kluge Date: Sun, 5 Feb 2017 14:25:24 +0100 Subject: [PATCH] Pass parsed request-URL into the run-method --- examples/custom-server-hapi/next-wrapper.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/custom-server-hapi/next-wrapper.js b/examples/custom-server-hapi/next-wrapper.js index ecdd9bb132122..682d03fd6e481 100644 --- a/examples/custom-server-hapi/next-wrapper.js +++ b/examples/custom-server-hapi/next-wrapper.js @@ -2,7 +2,7 @@ const pathWrapper = (app, pathName, opts) => ({ raw, query }, hapiReply) => app.renderToHTML(raw.req, raw.res, pathName, query, opts) .then(hapiReply) -const defaultHandlerWrapper = app => ({ raw }, hapiReply) => -app.run(raw.req, raw.res) +const defaultHandlerWrapper = app => ({ raw, url }, hapiReply) => +app.run(raw.req, raw.res, url) module.exports = { pathWrapper, defaultHandlerWrapper }