Skip to content
This repository has been archived by the owner on Dec 9, 2024. It is now read-only.

Commit

Permalink
Work in progress
Browse files Browse the repository at this point in the history
  • Loading branch information
skhaz committed Nov 13, 2023
1 parent 760d531 commit 279d53e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 279d53e

Please sign in to comment.