We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 69bf5e4 commit 5b2d8c5Copy full SHA for 5b2d8c5
1 file changed
src/components/GitHubDownloader.tsx
@@ -48,11 +48,9 @@ export default function GitHubDownloader() {
48
if (!validateForm()) return;
49
50
try {
51
- const downloadUrl = `https://api.github.com/${username}/${repository}/zip/${branch}`;
52
-
+ const downloadUrl = `https://api.github.com/repos/${username}/${repository}/zipball/${branch}`;
53
// 打开新窗口进行下载
54
window.open(downloadUrl, "_blank");
55
56
// 显示成功消息
57
setSuccess(true);
58
0 commit comments