Skip to content

Commit b7a46e5

Browse files
committed
Set webFetch Accept header to prefer markdown.
Some sites that are optimized for agents will serve markdown if you ask for it, so we should ask for it.
1 parent 5142d30 commit b7a46e5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/workshop-backend/src/web-fetch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ async function followRedirects(
249249
redirect: "manual",
250250
headers: {
251251
"user-agent": USER_AGENT,
252-
"accept": "text/html,text/plain,application/json,application/xhtml+xml,*/*;q=0.8",
252+
"accept": "text/markdown,text/html;q=0.9,text/plain;q=0.9,application/json;q=0.9,application/xhtml+xml;q=0.9,*/*;q=0.8",
253253
},
254254
signal: abortSignal,
255255
});

0 commit comments

Comments
 (0)