Skip to content

Commit f17c1c1

Browse files
authored
fix(readme): properly structure the options for custom agent (#786)
`request:` is nested under `options:` in the readme but in reality it's passed at the same level as `username:` and `headers:`. Resolves #785
1 parent ea46fa9 commit f17c1c1

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -566,10 +566,8 @@ const { data } = await request("GET /users/{username}", {
566566
headers: {
567567
"X-GitHub-Api-Version": "2022-11-28",
568568
},
569-
options: {
570-
request: {
571-
fetch: myFetch,
572-
},
569+
request: {
570+
fetch: myFetch,
573571
},
574572
});
575573
```

0 commit comments

Comments
 (0)