diff --git a/internal/web/gist.go b/internal/web/gist.go index 844a21a..dc09b52 100644 --- a/internal/web/gist.go +++ b/internal/web/gist.go @@ -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))