Skip to content

Commit

Permalink
docs(readme): fix https proxy example (#352)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-bot committed Mar 5, 2024
1 parent 9945dc2 commit 142890f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ If you would like to disable or customize this behavior, for example to use the
<!-- prettier-ignore -->
```ts
import http from 'http';
import HttpsProxyAgent from 'https-proxy-agent';
import { HttpsProxyAgent } from 'https-proxy-agent';

// Configure the default for all requests:
const modernTreasury = new ModernTreasury({
Expand All @@ -310,9 +310,8 @@ const modernTreasury = new ModernTreasury({

// Override per-request:
await modernTreasury.externalAccounts.list({
baseURL: 'http://localhost:8080/test-api',
httpAgent: new http.Agent({ keepAlive: false }),
})
});
```

## Semantic Versioning
Expand Down

0 comments on commit 142890f

Please sign in to comment.