1
0
Fork 0

Update URLs for official Project Gemini capsule (#342)

* Update URLs for official Project Gemini capsule

* Update disabled tests
This commit is contained in:
Marc Ransome 2023-11-03 15:34:18 +00:00 committed by GitHub
parent 598a9d05dd
commit 6a92dd336b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 6 additions and 6 deletions

View File

@ -24,9 +24,9 @@ var normalizeURLTests = []struct {
{"https://example.com", "https://example.com"},
// Fixing URL tests
// Some commented out due to #324
//{"gemini://gemini.circumlunar.space/%64%6f%63%73/%66%61%71%2e%67%6d%69", "gemini://gemini.circumlunar.space/docs/faq.gmi"},
//{"gemini://geminiprotocol.net/%64%6f%63%73/%66%61%71%2e%67%6d%69", "gemini://geminiprotocol.net/docs/faq.gmi"},
{"gemini://example.com/蛸", "gemini://example.com/%E8%9B%B8"},
//{"gemini://gemini.circumlunar.space/%64%6f%63%73/;;.'%66%61%71蛸%2e%67%6d%69", "gemini://gemini.circumlunar.space/docs/%3B%3B.%27faq%E8%9B%B8.gmi"},
//{"gemini://geminiprotocol.net/%64%6f%63%73/;;.'%66%61%71蛸%2e%67%6d%69", "gemini://geminiprotocol.net/docs/%3B%3B.%27faq%E8%9B%B8.gmi"},
{"gemini://example.com/?%2Ch%64ello蛸", "gemini://example.com/?%2Chdello%E8%9B%B8"},
// IPv6 tests, see #195
{"gemini://[::1]", "gemini://[::1]/"},

View File

@ -190,7 +190,7 @@ func Init() error {
// Setup main config
viper.SetDefault("a-general.home", "gemini://gemini.circumlunar.space")
viper.SetDefault("a-general.home", "gemini://geminiprotocol.net")
viper.SetDefault("a-general.auto_redirect", false)
viper.SetDefault("a-general.http", "default")
viper.SetDefault("a-general.search", "gemini://geminispace.info/search")

View File

@ -25,7 +25,7 @@ var defaultConf = []byte(`# This is the default config file.
[a-general]
# Press Ctrl-H to access it
home = "gemini://gemini.circumlunar.space"
home = "gemini://geminiprotocol.net"
# Follow up to 5 Gemini redirects without prompting.
# A prompt is always shown after the 5th redirect and for redirects to protocols other than Gemini.

View File

@ -22,7 +22,7 @@
[a-general]
# Press Ctrl-H to access it
home = "gemini://gemini.circumlunar.space"
home = "gemini://geminiprotocol.net"
# Follow up to 5 Gemini redirects without prompting.
# A prompt is always shown after the 5th redirect and for redirects to protocols other than Gemini.

View File

@ -29,7 +29,7 @@ Happy browsing!
=> https://github.com/makeworld-the-better-one/amfora/wiki Amfora Wiki [GitHub]
=> gemini://makeworld.space/amfora-wiki/ Amfora Wiki [On Gemini!]
=> gemini://gemini.circumlunar.space Project Gemini
=> gemini://geminiprotocol.net Project Gemini
`
// Read the new tab content from a file if it exists or fallback to a default page.