1
0
mirror of synced 2025-12-19 18:10:59 -05:00

Revert temporary change to add response header if origin receives https (#52882)

This commit is contained in:
Kevin Heis
2024-11-01 00:44:46 -07:00
committed by GitHub
parent 6cb0427a22
commit afba09dda6

View File

@@ -214,12 +214,6 @@ export default function (app: Express) {
// *** Headers ***
app.set('etag', false) // We will manage our own ETags if desired
// temporary
app.use(function (req, res, next) {
res.set('x-ptcl', req.secure ? 'o' : 'x')
next()
})
// *** Config and context for redirects ***
app.use(detectLanguage) // Must come before context, breadcrumbs, find-page, handle-errors, homepages
app.use(asyncMiddleware(reloadTree)) // Must come before context