diff --git a/src/auth.go b/src/auth.go index 2a98167..d9e11fe 100644 --- a/src/auth.go +++ b/src/auth.go @@ -52,6 +52,7 @@ func GetHost(r *http.Request) (string, error) { return "", AuthError{http.StatusBadRequest, fmt.Sprintf("host name %q is reserved", host)} } + host = strings.TrimSuffix(host, ".") return host, nil }