File tree 2 files changed +4
-5
lines changed
packages/browser/test/unit/transports
2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ describe('FetchTransport', () => {
87
87
{
88
88
dsn : testDsn ,
89
89
headers : {
90
- Authorization : 'Basic GVzdDp0ZXN0Cg== ' ,
90
+ Accept : 'application/json ' ,
91
91
} ,
92
92
} ,
93
93
window . fetch ,
@@ -103,7 +103,7 @@ describe('FetchTransport', () => {
103
103
fetch . calledWith ( storeUrl , {
104
104
body : JSON . stringify ( eventPayload ) ,
105
105
headers : {
106
- Authorization : 'Basic GVzdDp0ZXN0Cg== ' ,
106
+ Accept : 'application/json ' ,
107
107
} ,
108
108
method : 'POST' ,
109
109
referrerPolicy : 'origin' ,
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ describe('XHRTransport', () => {
64
64
transport = new Transports . XHRTransport ( {
65
65
dsn : testDsn ,
66
66
headers : {
67
- Authorization : 'Basic GVzdDp0ZXN0Cg== ' ,
67
+ Accept : 'application/json ' ,
68
68
} ,
69
69
} ) ;
70
70
@@ -74,8 +74,7 @@ describe('XHRTransport', () => {
74
74
75
75
expect ( res . status ) . equal ( Status . Success ) ;
76
76
const requestHeaders : { [ key : string ] : string } = request . requestHeaders as { [ key : string ] : string } ;
77
- const authHeaderLabel = 'Authorization' ;
78
- expect ( requestHeaders [ authHeaderLabel ] ) . equal ( 'Basic GVzdDp0ZXN0Cg==' ) ;
77
+ expect ( requestHeaders [ 'Accept' ] ) . equal ( 'application/json' ) ;
79
78
} ) ;
80
79
81
80
describe ( 'Rate-limiting' , ( ) => {
You can’t perform that action at this time.
0 commit comments