Skip to content

Commit a670025

Browse files
authored
Merge pull request #59 from eeditiones/fix/github-download
fix(github): condition in get-blob detects the default case
2 parents 3ea21ee + df22e4e commit a670025

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/modules/github.xql

+1-1
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ declare variable $github:raw-usercontent-endpoint := "https://raw.githubusercont
221221
: https://raw.githubusercontent.com/<owner>/<repo>/<sha>/<path>
222222
:)
223223
declare %private function github:get-blob($config as map(*), $filename as xs:string, $sha as xs:string) {
224-
if (not(starts-with($config?base-url, "https://api.github.com"))) then (
224+
if (not(starts-with($config?baseurl, "https://api.github.com"))) then (
225225
(: for GitHub enterprise we have to query for the download url, this might return the contents directly :)
226226
let $blob-url := github:repo-url($config) || "/contents/" || escape-html-uri($filename) || "?ref=" || $sha
227227
let $json := github:request-json($blob-url, $config?token)

0 commit comments

Comments
 (0)