Skip to content

Commit bf206ca

Browse files
authoredAug 2, 2018
Don't recommend setting user-agent to undefined
Not to confuse with `got.mergeOptions()`, where it keeps the default value. Use `null` instead.
1 parent 80a02fe commit bf206ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -749,7 +749,7 @@ const createTestServer = require('create-test-server');
749749

750750
### User Agent
751751

752-
It's a good idea to set the `'user-agent'` header so the provider can more easily see how their resource is used. By default, it's the URL to this repo. You can omit this header by setting it to `null` or `undefined`.
752+
It's a good idea to set the `'user-agent'` header so the provider can more easily see how their resource is used. By default, it's the URL to this repo. You can omit this header by setting it to `null`.
753753

754754
```js
755755
const got = require('got');

0 commit comments

Comments
 (0)
Please sign in to comment.