Skip to content

Commit 2790904

Browse files
authored
Get The HeaderXForwardedSsl
1 parent a557b3c commit 2790904

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

context.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,9 @@ func (c *context) Scheme() string {
227227
}
228228
if scheme := c.request.Header.Get(HeaderXForwardedProto); scheme != "" {
229229
return scheme
230+
}
231+
if ssl := c.request.Header.Get(HeaderXForwardedSsl); ssl == "on" {
232+
return "https"
230233
}
231234
return "http"
232235
}

0 commit comments

Comments
 (0)