use r.Host
This commit is contained in:
parent
9f3f599bf3
commit
5deeab6fe2
|
@ -35,8 +35,7 @@ func routeStatic() chi.Router {
|
|||
|
||||
r.Get("/.well-known/acme-challenge/{token}", func(w http.ResponseWriter, r *http.Request) {
|
||||
//token := chi.URLParam(r, "token")
|
||||
host := r.Header.Get("Host")
|
||||
|
||||
host := r.Host
|
||||
if strings.ContainsAny(host, "/:|\\") {
|
||||
host = ""
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue