We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c767492 commit 8d24c3bCopy full SHA for 8d24c3b
src/npm.js
@@ -8,7 +8,7 @@ export async function fetchNpm(path) {
8
let response;
9
let headers;
10
for (let attempt = 0, maxAttempts = 3; attempt < maxAttempts; ++attempt) {
11
- response = await fetch(url);
+ response = await fetch(url, {headers: {"User-Agent": "observablehq/oss-analytics"}});
12
headers = response.headers;
13
if (response.ok) break;
14
console.warn(Object.fromEntries(headers));
0 commit comments