Skip to content

Commit

Permalink
ESD-8349: Add user-agent to headers in auth webhook extension
Browse files Browse the repository at this point in the history
  • Loading branch information
Deborah-Digges committed Aug 26, 2020
1 parent 301031b commit fe54ab6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/lib/senders/auth-webhooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ module.exports = () => {
const batchMode = config('SEND_AS_BATCH') === true || config('SEND_AS_BATCH') === 'true';
const concurrentCalls = parseInt(config('WEBHOOK_CONCURRENT_CALLS'), 10) || 5;
const headers = config('AUTHORIZATION') ? { Authorization: config('AUTHORIZATION') } : {};
headers['User-Agent'] = 'auth0-extensions/0.2.7 auth webhook';

const sendRequest = (data, callback) =>
Request({
Expand Down

0 comments on commit fe54ab6

Please sign in to comment.