We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2f418b7 commit dfa7505Copy full SHA for dfa7505
src/index.ts
@@ -30,7 +30,7 @@ export function createIPXHandler ({
30
}
31
const handler: Handler = async (event, _context) => {
32
const host = event.headers.host
33
- const protocol = event.headers['x-forwarded-proto'] || 'http'
+ const protocol = event.headers['x-forwarded-proto'] === 'https' ? 'https' : 'http'
34
let domains = (opts as IPXOptions).domains || []
35
const remoteURLPatterns = remotePatterns || []
36
const requestEtag = event.headers['if-none-match']
0 commit comments