summaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2023-01-31 10:14:19 +0100
committerjwijenbergh <jeroenwijenbergh@protonmail.com>2023-01-31 10:14:19 +0100
commit383db3d8ed804e66fe7052e9eb0488c59cef7671 (patch)
tree9f77cf44b9c0e0e1d5cb2224799cb6bf99000fab /internal
parent249d1e0faebe33c4b112818bf79a80c386a11faf (diff)
Util Test: test for HTTPS rewrite
Diffstat (limited to 'internal')
-rw-r--r--internal/util/util_test.go4
1 files changed, 2 insertions, 2 deletions
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 (/)