Better HTTPS detection
هذا الالتزام موجود في:
@@ -47,7 +47,7 @@ func gistInit(next echo.HandlerFunc) echo.HandlerFunc {
|
|||||||
}
|
}
|
||||||
|
|
||||||
httpProtocol := "http"
|
httpProtocol := "http"
|
||||||
if ctx.Request().TLS != nil {
|
if ctx.Request().TLS != nil || ctx.Request().Header.Get("X-Forwarded-Proto") == "https" {
|
||||||
httpProtocol = "https"
|
httpProtocol = "https"
|
||||||
}
|
}
|
||||||
setData(ctx, "httpProtocol", strings.ToUpper(httpProtocol))
|
setData(ctx, "httpProtocol", strings.ToUpper(httpProtocol))
|
||||||
|
|||||||
المرجع في مشكلة جديدة
حظر مستخدم