From 279d53e59f7430db86266c804ce318b92afa8b5f Mon Sep 17 00:00:00 2001 From: Rodrigo Delduca <46259+skhaz@users.noreply.github.com> Date: Mon, 13 Nov 2023 15:17:59 -0300 Subject: [PATCH] Work in progress --- main.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/main.go b/main.go index 3477ebb..358692a 100644 --- a/main.go +++ b/main.go @@ -230,14 +230,14 @@ func rootHandler(w http.ResponseWriter, r *http.Request) { return } - var protocol string - if r.TLS == nil { - protocol = "http" - } else { - protocol = "https" - } - - baseURL := fmt.Sprintf("%s://%s%s/", protocol, r.Host, strings.TrimRight(path.Clean(r.URL.Path), "/")) + // var protocol string + // if r.TLS == nil { + // protocol = "http" + // } else { + // protocol = "https" + // } + + baseURL := fmt.Sprintf("%s/", strings.TrimRight(path.Clean(r.URL.Path), "/")) data := struct { BaseURL string