Skip to content

Commit

Permalink
fix: #9719, only apply to non https
Browse files Browse the repository at this point in the history
  • Loading branch information
barisusakli committed Aug 23, 2021
1 parent 2dcced5 commit c354cde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/write/index.js
Expand Up @@ -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);
}
Expand Down

0 comments on commit c354cde

Please sign in to comment.