From c354cde347f642dbc5ad5242d8fba3d73b10a9a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Mon, 23 Aug 2021 11:51:36 -0400 Subject: [PATCH] fix: #9719, only apply to non https --- src/routes/write/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/write/index.js b/src/routes/write/index.js index 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); }