From bf206caf4b154ab36a8270d7128eef89569d2f33 Mon Sep 17 00:00:00 2001 From: Szymon Marczak <36894700+szmarczak@users.noreply.github.com> Date: Thu, 2 Aug 2018 16:04:58 +0200 Subject: [PATCH] Don't recommend setting `user-agent` to undefined Not to confuse with `got.mergeOptions()`, where it keeps the default value. Use `null` instead. --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 2aa93dfe8..fa38aefbd 100644 --- a/readme.md +++ b/readme.md @@ -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');