Skip to content

Commit

Permalink
Update redirector base URL to use HTTPS
Browse files Browse the repository at this point in the history
  • Loading branch information
alileza committed Mar 19, 2024
1 parent 81bd1d9 commit c94d084
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion portal/portal.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func NewServer(o *Options) *Server {

apiMux.HandleFunc("GET /api/routes", func(w http.ResponseWriter, r *http.Request) {
o.Logger.Printf("200 - GET /api/routes\n")
o.Redirector.BaseURL = r.URL.Scheme + "://" + r.Host
o.Redirector.BaseURL = "https://" + r.Host
responseOk(w, o.Redirector.ListRoutes())
})

Expand Down

0 comments on commit c94d084

Please sign in to comment.