Skip to content

Commit 8d68354

Browse files
authored
Update speed-test.js
1 parent 659facb commit 8d68354

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/speed-test.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ const callRecords = {}
66
const errorCallbacks = []
77
let counter = 0
88

9+
const headers = {
10+
Authorization: "Bearer AzureDatabricksSpeedTestxxxxxxxxxxxx-2"
11+
}
12+
913
function process() {
1014
counter += 1
1115
if (queue.length == 0) {
@@ -25,7 +29,7 @@ function process() {
2529
counter
2630
}
2731

28-
fetch(url, { mode: 'cors' , cache: 'reload'})
32+
fetch(url, { mode: 'cors' , cache: 'reload', headers})
2933
.then(response => response.text())
3034
.then(data => call(item.domain, data))
3135
.catch(error => {

0 commit comments

Comments
 (0)