Heroku test fix
This commit is contained in:
parent
a682f945c0
commit
5f24739d37
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue