1
0
mirror of synced 2025-12-23 21:07:12 -05:00

Revert "Add temporary endpoint to check language headers (#33154)" (#33159)

This commit is contained in:
Kevin Heis
2022-12-01 13:37:35 -08:00
committed by GitHub
parent b7d6ee0853
commit 5e6890745d

View File

@@ -234,14 +234,6 @@ export default function (app) {
app.get('/_ip', instrument(remoteIP, './remoteIP'))
app.get('/_build', instrument(buildInfo, './buildInfo'))
// TEMPORARY towards 33028
app.get('/headers.json', (req, res) => {
res.set('cache-control', 'private, no-store').json({
'accept-language': req.get('accept-language'),
'x-user-language': req.get('x-user-language'),
})
})
// Check for a dropped connection before proceeding (again)
app.use(haltOnDroppedConnection)