Skip to content

Commit da97d24

Browse files
fix: isolate MLI header to prevent unintended propagation
1 parent e3aac70 commit da97d24

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/endpoints/multi-location-inventories.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,14 @@ class MultiLocationInventories {
66
constructor(endpoint) {
77
const config = { ...endpoint }
88

9-
config.headers['ep-inventories-multi-location'] = true
9+
Object.defineProperty(config, 'headers', {
10+
get() {
11+
return {
12+
...endpoint.headers,
13+
'ep-inventories-multi-location': true
14+
}
15+
}
16+
})
1017

1118
this.request = new RequestFactory(config)
1219

0 commit comments

Comments
 (0)