From 5f24739d37dc1f31c5c4a52c22bc33806937cfcd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=83=9D=E3=83=BC=E3=83=AB=20=E3=82=A6=E3=82=A7=E3=83=83?= =?UTF-8?q?=E3=83=96?= Date: Tue, 8 Jan 2019 12:36:00 -0600 Subject: [PATCH] Heroku test fix --- server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.js b/server.js index 7fc9a49..b6773a4 100755 --- a/server.js +++ b/server.js @@ -44,7 +44,7 @@ fastify fastify.addHook("preHandler", (request, reply, next) => { if (process.env.NODE_ENV !== "development") { 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 next();