Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -78,7 +78,7 @@ const agent = new HttpProxyAgent({
maxSockets: 256,
maxFreeSockets: 256,
proxy: 'https://localhost:8080',
proxyConnectOptions: {
proxyRequestOptions: {
headers: {
'Proxy-Authorization': 'Basic YWxhZGRpbjpvcGVuc2VzYW1l',
},
Expand Down