diff --git a/main.go b/main.go index 202f32c..52312db 100644 --- a/main.go +++ b/main.go @@ -22,7 +22,6 @@ func main() { newHost := strings.TrimSuffix(host, OldDomain) + NewDomain scheme := "https" if proto := c.Request.Header.Get("X-Forwarded-Proto"); len(proto) > 0 { - scheme = string(proto) } else if forwarded := c.Request.Header.Get("Forwarded"); len(forwarded) > 0 { // Forwarded: proto=https;host=xxx for _, part := range strings.Split(string(forwarded), ";") { @@ -40,7 +39,6 @@ func main() { return } }) - h.GET("/*any", func(ctx context.Context, c *app.RequestContext) { c.JSON(200, map[string]interface{}{"message": "pong"}) })