Monorepo for Tangled tangled.org

appview: state: url.PathEscape branch names in NewHiddenRef

authored by anirudh.fi and committed by Tangled 595d6056 8a571743

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