File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
packages/transport-fetch/src Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -15,16 +15,16 @@ export class FetchTransport extends BaseTransport implements Transport {
15
15
requestOptions . credentials = this . _options . credentials as RequestCredentials ;
16
16
}
17
17
18
- return fetch ( this . _dsn . getEnvelopeEndpoint ( ) , requestOptions ) . then ( async response => {
19
- return {
20
- body : await response . text ( ) ,
18
+ return fetch ( this . _dsn . getEnvelopeEndpoint ( ) , requestOptions ) . then ( response => {
19
+ return response . text ( ) . then ( body => ( {
20
+ body,
21
21
headers : {
22
22
'x-sentry-rate-limits' : response . headers . get ( 'X-Sentry-Rate-Limits' ) ,
23
23
'retry-after' : response . headers . get ( 'Retry-After' ) ,
24
24
} ,
25
25
reason : response . statusText ,
26
26
statusCode : response . status ,
27
- } ;
27
+ } ) ) ;
28
28
} ) ;
29
29
}
30
30
}
You can’t perform that action at this time.
0 commit comments