File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -228,8 +228,8 @@ export function middleware(request: NextRequest) {
228228 // See https://github.com/pantheon-systems/documentation/issues/9791
229229 // for more context.
230230 const siteMachineName = process . env . PANTHEON_SITE_MACHINE_NAME || "documentation-in-nextjs" ;
231- const incomingProtocol = request . headers . get ( 'x-proto' ) || '' ;
232- const policyDocSurrogateKey = request . headers . get ( 'policy-doc-surrogate-key ' ) || '' ;
231+ const incomingProtocol = request . headers . get ( 'x-forwarded- proto' ) || '' ;
232+ const policyDocSurrogateKey = request . headers . get ( 'Policy-Doc-Surrogate-Key ' ) || '' ;
233233 if ( incomingProtocol === 'http' && policyDocSurrogateKey ) {
234234 url . protocol = "https:" ;
235235 url . hostname = policyDocSurrogateKey ;
You can’t perform that action at this time.
0 commit comments