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

appview: state: url.PathEscape branch names in NewHiddenRef

Changed files
+1 -1
appview
state
+1 -1
appview/state/signer.go
···
const (
Method = "POST"
)
-
endpoint := fmt.Sprintf("/%s/%s/hidden-ref/%s/%s", ownerDid, targetRepo, forkBranch, remoteBranch)
+
endpoint := fmt.Sprintf("/%s/%s/hidden-ref/%s/%s", ownerDid, targetRepo, url.PathEscape(forkBranch), url.PathEscape(remoteBranch))
req, err := s.newRequest(Method, endpoint, nil)
if err != nil {