Heroku test fix

This commit is contained in:
ポール ウェッブ 2019-01-08 12:36:00 -06:00
parent a682f945c0
commit 5f24739d37

View file

@ -44,7 +44,7 @@ fastify
fastify.addHook("preHandler", (request, reply, next) => { fastify.addHook("preHandler", (request, reply, next) => {
if (process.env.NODE_ENV !== "development") { if (process.env.NODE_ENV !== "development") {
if (request.headers["x-forwarded-proto"] !== "https") if (request.headers["x-forwarded-proto"] !== "https")
reply.redirect(302, "https://" + request.hostname + request.originalUrl); reply.redirect(302, "https://" + request.raw.hostname + request.raw.originalUrl);
else else
next(); next();