Skip to content

Commit

Permalink
fix: carry user options from constructor to axios parameters
Browse files Browse the repository at this point in the history
This allows users to set parameters on the axios config object using the service constructor
  • Loading branch information
dpopp07 authored and Joy Chang committed May 1, 2019
1 parent faa8a90 commit 65d55ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/requestwrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ export function sendRequest(parameters, _callback) {
httpsAgent: new https.Agent({ rejectUnauthorized }),
};

axios(requestParams)
axios(extend(true, {}, options, requestParams))
.then(res => {
// the other sdks use the interface `result` for the body
_callback(null, res.data, res);
Expand Down

0 comments on commit 65d55ec

Please sign in to comment.