aboutsummaryrefslogtreecommitdiff
path: root/http_server.go
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-04-03 18:57:04 +0800
committerRunxi Yu <me@runxiyu.org>2025-04-03 18:57:04 +0800
commitb1552de72c0b9be06dadd0932867d91c7bd243e5 (patch)
tree78d988d043e3711e7e0b32511d62832fee5671d8 /http_server.go
parentHTML: Add contribution guidelines in the MR tab (diff)
downloadforge-b1552de72c0b9be06dadd0932867d91c7bd243e5.tar.gz
forge-b1552de72c0b9be06dadd0932867d91c7bd243e5.tar.zst
forge-b1552de72c0b9be06dadd0932867d91c7bd243e5.zip
HTML: Repo patch mailing list should not include final slashv0.1.17
Diffstat (limited to 'http_server.go')
-rw-r--r--http_server.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/http_server.go b/http_server.go
index e234d64..cc5a5f5 100644
--- a/http_server.go
+++ b/http_server.go
@@ -190,7 +190,7 @@ func (router *forgeHTTPRouter) ServeHTTP(writer http.ResponseWriter, request *ht
repoURLRoot = repoURLRoot + url.PathEscape(part) + "/"
}
params["repo_url_root"] = repoURLRoot
- params["repo_patch_mailing_list"] = repoURLRoot[1:] + "@" + config.LMTP.Domain
+ params["repo_patch_mailing_list"] = repoURLRoot[1:len(repoURLRoot)-1] + "@" + config.LMTP.Domain
params["http_clone_url"] = genHTTPRemoteURL(groupPath, moduleName)
params["ssh_clone_url"] = genSSHRemoteURL(groupPath, moduleName)