diff --git a/readme.md b/readme.md index f238289..082d09a 100644 --- a/readme.md +++ b/readme.md @@ -123,7 +123,22 @@ got('todomvc.com', { host: 'localhost' } }) -}, function (err, data, res) {}); +}, function () {}); +``` + + +## Tip + +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. + +```js +var got = require('got'); + +got('todomvc.com', { + headers: { + 'user-agent': 'https://github.com/your-username/repo-name' + } +}, function () {}); ```