Node.js based forum software built for the modern web
fix: #9719, only apply to non https
Barış Soner Uşaklıc354cde347f6
diff --git a/src/routes/write/index.js b/src/routes/write/index.jsindex 44b73fe9d2..59e22e1ca2 100644--- a/src/routes/write/index.js+++ b/src/routes/write/index.js@@ -23,7 +23,7 @@ Write.reload = async (params) => {router.use('/api/v3', (req, res, next) => {// Require https if configured so- if (apiSettings.requireHttps === 'on') {+ if (apiSettings.requireHttps === 'on' && req.protocol !== 'https') {res.set('Upgrade', 'TLS/1.0, HTTP/1.1');return helpers.formatApiResponse(426, res);}