diff --git a/middlewares/errorpages/error_pages_test.go b/middlewares/errorpages/error_pages_test.go index 4700e5b3b..0ff70689b 100644 --- a/middlewares/errorpages/error_pages_test.go +++ b/middlewares/errorpages/error_pages_test.go @@ -239,7 +239,7 @@ func TestHandlerOldWay(t *testing.T) { func TestHandlerOldWayIntegration(t *testing.T) { errorPagesServer := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - if r.URL.RequestURI() == "/"+strconv.Itoa(503) { + if r.URL.RequestURI() == "/503" { fmt.Fprintln(w, "My 503 page.") } else { fmt.Fprintln(w, "Test Server") diff --git a/provider/acme/account.go b/provider/acme/account.go index e57607229..4af3ad0b8 100644 --- a/provider/acme/account.go +++ b/provider/acme/account.go @@ -19,7 +19,7 @@ type Account struct { const ( // RegistrationURLPathV1Regexp is a regexp which match ACME registration URL in the V1 format - RegistrationURLPathV1Regexp string = `^.*/acme/reg/\d+$` + RegistrationURLPathV1Regexp = `^.*/acme/reg/\d+$` ) // NewAccount creates an account