diff --git a/server.go b/server.go index 309ac34..6ec6549 100644 --- a/server.go +++ b/server.go @@ -65,7 +65,7 @@ func checkTokenAndLog(handler http.Handler) http.Handler { return } - log.Printf("%s %s %s\n", r.RemoteAddr, r.Method, strings.Split(r.URL, "?")[0]) + log.Printf("%s %s %s\n", r.RemoteAddr, r.Method, strings.Split(r.URL.String(), "?")[0]) handler.ServeHTTP(w, r) }) } diff --git a/templates/config.html b/templates/config.html index 2d64444..9018811 100644 --- a/templates/config.html +++ b/templates/config.html @@ -28,7 +28,7 @@ {{$errors := .Errors}} {{range $i, $schema := .Schema}}
- + {{if $schema.FixedValue}} {{else if $schema.IsPassword}} + {{else if $schema.IsNumeric}} +