Skip to content

Commit 7539987

Browse files
authored
fix(browser/core): Fixed typo in documentation and incorrect test (#3389)
1 parent d9e6976 commit 7539987

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/browser/test/unit/transports/fetch.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ describe('FetchTransport', () => {
366366
.returns(afterLimit);
367367

368368
const headers = new Headers();
369-
headers.set('X-Sentry-Rate-Limits', `${retryAfterSeconds}:error;transaction:scope`);
369+
headers.set('X-Sentry-Rate-Limits', `${retryAfterSeconds}::scope`);
370370
fetch.returns(Promise.resolve({ status: 429, headers }));
371371

372372
try {

packages/core/src/request.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function enhanceEventWithSdkInfo(event: Event, sdkInfo?: SdkInfo): Event {
3131
return event;
3232
}
3333

34-
/** Creates a SentryRequest from an event. */
34+
/** Creates a SentryRequest from a Session. */
3535
export function sessionToSentryRequest(session: Session, api: API): SentryRequest {
3636
const sdkInfo = getSdkMetadataForEnvelopeHeader(api);
3737
const envelopeHeaders = JSON.stringify({

0 commit comments

Comments
 (0)