Skip to content

Commit

Permalink
Pass parsed request-URL into the run-method (#1000)
Browse files Browse the repository at this point in the history
  • Loading branch information
herschel666 authored and impronunciable committed Feb 5, 2017
1 parent 2af8a4c commit f6510c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/custom-server-hapi/next-wrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 }

0 comments on commit f6510c0

Please sign in to comment.