From 0323e877fd1507a41d6b50796f5c2a775c268607 Mon Sep 17 00:00:00 2001 From: Adam King Date: Mon, 1 May 2023 09:47:32 -0400 Subject: [PATCH] =?UTF-8?q?Remove=20the=20'git'=20reqOpt=20after=20reading?= =?UTF-8?q?=20so=20it=20doesn't=20propagate=20through=E2=80=A6=20(#419)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Remove the 'git' reqOpt after reading so it doesn't propagate through to Request-util * cleanup --------- Co-authored-by: Paul Carroll --- src/RemoteResourceGitController.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/RemoteResourceGitController.js b/src/RemoteResourceGitController.js index 67982e3d..84215921 100644 --- a/src/RemoteResourceGitController.js +++ b/src/RemoteResourceGitController.js @@ -37,6 +37,8 @@ module.exports = class RemoteResourceGitController extends BaseDownloadControlle opt.simple = false; opt.resolveWithFullResponse = true; + delete opt.git; // `git` is not an expected request option + return await RequestLib.doRequest(opt, this.log); }