From 01d05efd04eca9815a6bf638579207727342a915 Mon Sep 17 00:00:00 2001 From: Rostyk <34774987+rostyk-kanafotskyy@users.noreply.github.com> Date: Fri, 18 Oct 2024 13:19:40 +0300 Subject: [PATCH] fix: isolate MLI header to prevent unintended propagation (#33) --- src/endpoints/multi-location-inventories.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/endpoints/multi-location-inventories.js b/src/endpoints/multi-location-inventories.js index 0c56269..1d1a152 100644 --- a/src/endpoints/multi-location-inventories.js +++ b/src/endpoints/multi-location-inventories.js @@ -6,7 +6,10 @@ class MultiLocationInventories { constructor(endpoint) { const config = { ...endpoint } - config.headers['ep-inventories-multi-location'] = true + config.headers = { + ...config.headers, + 'ep-inventories-multi-location': true + } this.request = new RequestFactory(config)