mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Fix incorrect internal response type (#24173)
Close #24167 The endpoint "set-default-branch" returns `success`, so just decode it as `responseText`
This commit is contained in:
		@@ -129,7 +129,8 @@ func SetDefaultBranch(ctx context.Context, ownerName, repoName, branch string) R
 | 
			
		||||
		url.PathEscape(branch),
 | 
			
		||||
	)
 | 
			
		||||
	req := newInternalRequest(ctx, reqURL, "POST")
 | 
			
		||||
	return requestJSONUserMsg(req, "")
 | 
			
		||||
	_, extra := requestJSONResp(req, &responseText{})
 | 
			
		||||
	return extra
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// SSHLog sends ssh error log response
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user