Skip to content

Commit

Permalink
Project Management Automation: Add request User-Agent header
Browse files Browse the repository at this point in the history
  • Loading branch information
aduth committed Mar 31, 2020
1 parent 26ddea3 commit 0d338e5
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ async function hasWordPressProfile( githubUsername ) {
hostname: BASE_PROFILE_LOOKUP_API_HOSTNAME,
path: BASE_PROFILE_LOOKUP_API_BASE_PATH + githubUsername,
method: 'HEAD',
headers: {
'User-Agent': 'Gutenberg/project-management-automation',
},
};

request( options, ( res ) => resolve( res.statusCode === 200 ) )
Expand Down

0 comments on commit 0d338e5

Please sign in to comment.