Commit 53d84b3
committed
fix: set proper User-Agent header on outgoing HTTP requests
Yarn currently sends 'got (https://github.com/sindresorhus/got)' as the
User-Agent header, making it impossible to distinguish Yarn traffic.
Set it to follow the convention used by npm and pnpm:
yarn/<version> node/<node_version>
Fixes #71461 parent 6861e75 commit 53d84b3
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
238 | 239 | | |
239 | 240 | | |
240 | 241 | | |
241 | | - | |
| 242 | + | |
| 243 | + | |
242 | 244 | | |
243 | 245 | | |
244 | 246 | | |
| |||
0 commit comments