Skip to content

Commit 3319167

Browse files
authored
1 parent 466d509 commit 3319167

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
@@ -225,6 +225,9 @@ func (c *context) Scheme() string {
225225
if c.IsTLS() {
226226
return "https"
227227
}
228+
if scheme := c.request.Header.Get(HeaderXForwardedProto); scheme != "" {
229+
return scheme
230+
}
228231
return "http"
229232
}
230233

0 commit comments

Comments
 (0)