diff options
author | Runxi Yu <me@runxiyu.org> | 2025-04-03 18:57:04 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-04-03 18:57:04 +0800 |
commit | b1552de72c0b9be06dadd0932867d91c7bd243e5 (patch) | |
tree | 78d988d043e3711e7e0b32511d62832fee5671d8 | |
parent | HTML: Add contribution guidelines in the MR tab (diff) | |
download | forge-b1552de72c0b9be06dadd0932867d91c7bd243e5.tar.gz forge-b1552de72c0b9be06dadd0932867d91c7bd243e5.tar.zst forge-b1552de72c0b9be06dadd0932867d91c7bd243e5.zip |
HTML: Repo patch mailing list should not include final slashv0.1.17
-rw-r--r-- | http_server.go | 2 |
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) |