forked from tangled.org/core
this repo has no description

knotserver: strip @ from ownerHandle in reject message

Signed-off-by: Anirudh Oppiliappan <anirudh@tangled.sh>

anirudh.fi 418ce504 6f03cdc5

verified
Changed files
+1
knotserver
+1
knotserver/git.go
··· 129 129 // If the appview gave us the repository owner's handle we can attempt to 130 130 // construct the correct ssh url. 131 131 ownerHandle := r.Header.Get("x-tangled-repo-owner-handle") 132 + ownerHandle = strings.TrimPrefix(ownerHandle, "@") 132 133 if ownerHandle != "" && !strings.ContainsAny(ownerHandle, ":") { 133 134 hostname := d.c.Server.Hostname 134 135 if strings.Contains(hostname, ":") {