my bad qwq

This commit is contained in:
Ashley 2023-01-20 18:15:30 +00:00
parent 0c5ef551fd
commit 8a8ad1dfb0

View file

@ -108,14 +108,14 @@ this is our config file,you can change stuff here
"max-age=31536000; includeSubDomains; preload" "max-age=31536000; includeSubDomains; preload"
); );
} }
res.header("secure-poketube-instance", "1");
next(); next();
}); });
app.use(function (request, response, next) { app.use(function (request, response, next) {
if (config.enablealwayshttps == true) { if (config.enablealwayshttps == true) {
if (process.env.NODE_ENV != "development" && !request.secure) { if (process.env.NODE_ENV != "development" && !request.secure) {
response.header("secure-poketube-instance", "1");
return response.redirect( return response.redirect(
"https://" + request.headers.host + request.url "https://" + request.headers.host + request.url
); );