]> Sergey Matveev's repositories - tofuproxy.git/commitdiff
Easier redirection link selection with the mouse
authorSergey Matveev <stargrave@stargrave.org>
Thu, 16 Dec 2021 20:02:55 +0000 (23:02 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Fri, 17 Dec 2021 12:28:58 +0000 (15:28 +0300)
rounds/gemini.go
rounds/redirectHTML.go

index b3ed3205f2aabdc974a75407285aba429a4babb2..3c8491438297fb391e5b51a95981263d6fb3aca7 100644 (file)
@@ -155,7 +155,7 @@ func RoundGemini(
                        fmt.Sprintf(
                                `<!DOCTYPE html>
 <html><head><title>%d (%s) redirection</title></head>
-<body>Redirection to <a href="%s">%s</a></body></html>`,
+<body><a href="%s">%s</a></body></html>`,
                                code, codeName, u, u,
                        )))
                fifos.LogRedir <- fmt.Sprintf(
index 291086df5cd7d368d79ec570ade5c251184cf312..5e507ca9dd9f8818d836c8158428e8c6e668b3ef 100644 (file)
@@ -80,7 +80,7 @@ func RoundRedirectHTML(
                fmt.Sprintf(
                        `<!DOCTYPE html>
 <html><head><title>%d %s: %s redirection</title></head>
-<body>Redirection to <a href="%s">%s</a></body></html>`,
+<body><a href="%s">%s</a></body></html>`,
                        resp.StatusCode, http.StatusText(resp.StatusCode),
                        redirType, location, location,
                )))