From 383db3d8ed804e66fe7052e9eb0488c59cef7671 Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Tue, 31 Jan 2023 10:14:19 +0100 Subject: Util Test: test for HTTPS rewrite --- internal/util/util_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/util') diff --git a/internal/util/util_test.go b/internal/util/util_test.go index be19b11..cb82123 100644 --- a/internal/util/util_test.go +++ b/internal/util/util_test.go @@ -15,8 +15,8 @@ func TestEnsureValidURL(t *testing.T) { testCases := map[string]string{ // Make sure we set https "example.com/": "https://example.com/", - // Make sure we do not override the scheme if provided - "http://example.com/": "http://example.com/", + // Make sure we do override the scheme to https + "http://example.com/": "https://example.com/", // This URL is already valid "https://example.com/": "https://example.com/", // Make sure to add a trailing slash (/) -- cgit v1.2.3