Skip to content

Commit

Permalink
Don't recommend setting user-agent to undefined
Browse files Browse the repository at this point in the history
Not to confuse with `got.mergeOptions()`, where it keeps the default value.
Use `null` instead.
  • Loading branch information
szmarczak committed Aug 2, 2018
1 parent 80a02fe commit bf206ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion readme.md
Expand Up @@ -749,7 +749,7 @@ const createTestServer = require('create-test-server');

### User Agent

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`.
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`.

```js
const got = require('got');
Expand Down

0 comments on commit bf206ca

Please sign in to comment.