Skip to content

Commit 54e0d36

Browse files
authored
Merge pull request #1 from ryanholte/add-got-agent-option
Add got agent option
2 parents c76b06d + a5d7111 commit 54e0d36

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/api-client.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ class ApiClient {
4646
headers: {'Accept': 'application/json',
4747
'Content-Type': 'application/json',
4848
'User-Agent': 'recombee-node-api-client/4.0.0'},
49-
timeout: request.timeout
49+
timeout: request.timeout,
50+
agent: this.options.agent
5051
};
5152

5253
if (Object.entries(request.bodyParameters()).length > 0)

0 commit comments

Comments
 (0)