diff --git a/packages/package-registry/src/jsr/index.ts b/packages/package-registry/src/jsr/index.ts index 41bfbc1..66d12bb 100644 --- a/packages/package-registry/src/jsr/index.ts +++ b/packages/package-registry/src/jsr/index.ts @@ -119,7 +119,11 @@ export function getJsrPackageSrcFile( file: string ): Promise { const url = `https://jsr.io/@${scope}/${name}/${version}/${file}` - return fetch(url).then((res) => res.text()) + return fetch(url, { + headers: { + Accept: "application/json" + } + }).then((res) => res.text()) } /**