Skip to content

Commit 5e8df6f

Browse files
authored
fix: post converted to get by proxy (#820)
1 parent f1fd16d commit 5e8df6f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

server/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ app.set('trust proxy', true)
3838

3939
// ensure HTTPS only (X-Forwarded-Proto comes from Fly)
4040
app.use((req, res, next) => {
41+
if (req.method !== 'GET') return next()
42+
4143
const proto = req.get('X-Forwarded-Proto')
4244
const host = getHost(req)
4345
if (proto === 'http') {

0 commit comments

Comments
 (0)