1
0

Better HTTPS detection

هذا الالتزام موجود في:
Thomas Miceli
2023-04-10 22:45:52 +02:00
الأصل 2fe309663d
التزام 611d677404

عرض الملف

@@ -47,7 +47,7 @@ func gistInit(next echo.HandlerFunc) echo.HandlerFunc {
}
httpProtocol := "http"
if ctx.Request().TLS != nil {
if ctx.Request().TLS != nil || ctx.Request().Header.Get("X-Forwarded-Proto") == "https" {
httpProtocol = "https"
}
setData(ctx, "httpProtocol", strings.ToUpper(httpProtocol))