Skip to content

Commit fce4a32

Browse files
authored
Merge pull request #2 from stefanmirck/bugfix/backwards-compat
Bugfix: backwards compatibility for fastify 0.x.
2 parents 95443d6 + 40178c3 commit fce4a32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ module.exports = async function (fastify, opts) {
2424
fastify.all('/*', { beforeHandler }, reply)
2525

2626
function reply (request, reply) {
27-
var dest = request.raw.url.replace(this.basePath, '')
27+
var dest = request.req.url.replace(this.basePath, '')
2828
reply.from(dest)
2929
}
3030
}

0 commit comments

Comments
 (0)