Skip to content

Commit

Permalink
Send a UserAgent header to the symbolication server again (#5103)
Browse files Browse the repository at this point in the history
This will make it easier to determine what's causing load on the
servers.
  • Loading branch information
mstange authored Aug 29, 2024
2 parents 6a8c668 + 2f855af commit ac4ae1f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/actions/receive-profile.js
Original file line number Diff line number Diff line change
Expand Up @@ -914,6 +914,11 @@ function getSymbolStore(
body: json,
method: 'POST',
mode: 'cors',
// Use a profiler-specific user agent, so that the symbolication server knows
// what's making this request.
headers: new Headers({
'User-Agent': `FirefoxProfiler/1.0 (+${location.origin})`,
}),
});
return response.json();
}
Expand Down

0 comments on commit ac4ae1f

Please sign in to comment.