Skip to content
This repository was archived by the owner on Apr 14, 2025. It is now read-only.

Commit 0fde965

Browse files
committed
redirect url fix
1 parent ce435b9 commit 0fde965

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Sources/GitHubKit/Github.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ extension Github {
219219

220220
/// Get a temporary download link for an archive
221221
public func download(org: String, repo: String, ref: String, format: Format = .tarball) throws -> EventLoopFuture<String> {
222-
return try redirect(file: "/repos/\(org)/\(repo)/\(format.rawValue)/\(ref)", status: .found)
222+
return try redirect(file: "repos/\(org)/\(repo)/\(format.rawValue)/\(ref)", status: .found)
223223
}
224224

225225
}

0 commit comments

Comments
 (0)