We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a16e16a + 214d4b9 commit 6be6dc5Copy full SHA for 6be6dc5
src/headers.js
@@ -17,9 +17,10 @@ function getLDHeaders(platform, options) {
17
if (tagKeys.length) {
18
h['x-launchdarkly-tags'] = tagKeys
19
.sort()
20
- .flatMap(
+ .map(
21
key => (Array.isArray(tags[key]) ? tags[key].sort().map(value => `${key}/${value}`) : [`${key}/${tags[key]}`])
22
)
23
+ .reduce((flattened, item) => flattened.concat(item), [])
24
.join(' ');
25
}
26
return h;
0 commit comments