diff --git a/README.md b/README.md index fa3cc50..53f4a7d 100644 --- a/README.md +++ b/README.md @@ -64,7 +64,7 @@ http.get('http://localhost:9200', { agent }) .end() ``` -You can also pass custom options intended only for the proxy CONNECT request with the `proxyConnectOptions` option, +You can also pass custom options intended only for the proxy CONNECT request with the `proxyRequestOptions` option, such as headers or `tls.connect()` options: ```js @@ -78,7 +78,7 @@ const agent = new HttpProxyAgent({ maxSockets: 256, maxFreeSockets: 256, proxy: 'https://localhost:8080', - proxyConnectOptions: { + proxyRequestOptions: { headers: { 'Proxy-Authorization': 'Basic YWxhZGRpbjpvcGVuc2VzYW1l', },