Skip to content

Commit c3963be

Browse files
committed
fix merge, oops
1 parent a20fc43 commit c3963be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/core/src/fetch.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ function _addTracingHeadersToFetchRequest(
141141
prevHeaderStrippedFromSentryBaggage ? `${prevHeaderStrippedFromSentryBaggage},${baggage}` : baggage,
142142
);
143143
} else {
144-
newHeaders.set('baggage', sentryBaggageHeader);
144+
newHeaders.set('baggage', baggage);
145145
}
146146
}
147147

@@ -169,7 +169,7 @@ function _addTracingHeadersToFetchRequest(
169169
if (baggage) {
170170
// If there are multiple entries with the same key, the browser will merge the values into a single request header.
171171
// Its therefore safe to simply push a "baggage" entry, even though there might already be another baggage header.
172-
newHeaders.push(['baggage', sentryBaggageHeader]);
172+
newHeaders.push(['baggage', baggage]);
173173
}
174174

175175
return newHeaders as PolymorphicRequestHeaders;

0 commit comments

Comments
 (0)