diff --git a/exec-simpleserve b/exec-simpleserve index bea030f..23b675a 100755 Binary files a/exec-simpleserve and b/exec-simpleserve differ diff --git a/main.go b/main.go index 0ab8794..d205ff4 100755 --- a/main.go +++ b/main.go @@ -125,6 +125,7 @@ func writeForm(w http.ResponseWriter) { func httpsOnly(https bool, foo http.HandlerFunc) http.HandlerFunc { return func(w http.ResponseWriter, r *http.Request) { if https && r.URL.Scheme != "https" { + log.Printf("redirecting: %+v", r.URL) r.URL.Scheme = "https" http.Redirect(w, r, r.URL.String(), http.StatusSeeOther) return