From 65d55ecc8831d595bb7a4aac51d66b61fcd06b41 Mon Sep 17 00:00:00 2001 From: Dustin Popp Date: Mon, 29 Apr 2019 14:42:50 -0500 Subject: [PATCH] fix: carry user options from constructor to axios parameters This allows users to set parameters on the axios config object using the service constructor --- lib/requestwrapper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/requestwrapper.ts b/lib/requestwrapper.ts index f87245c94..75da7aa10 100644 --- a/lib/requestwrapper.ts +++ b/lib/requestwrapper.ts @@ -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);