Skip to content

Commit

Permalink
redirect url fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rafiki270 committed Jul 14, 2019
1 parent ce435b9 commit 0fde965
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/GitHubKit/Github.swift
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ extension Github {

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

}
Expand Down

0 comments on commit 0fde965

Please sign in to comment.