mirror of
https://github.com/shivammathur/setup-php.git
synced 2026-11-26 21:42:06 +00:00
Set the setup-php user agent for tool downloads and Node fetches
This commit is contained in:
@@ -21,6 +21,10 @@ it('checking fetch', async () => {
|
||||
|
||||
nock(host_url)
|
||||
.get('/manifest')
|
||||
.matchHeader(
|
||||
'user-agent',
|
||||
`setup-php (${process.platform}; ${process.arch}; +https://setup-php.com)`
|
||||
)
|
||||
.reply(200, {latest: 'latest'})
|
||||
.get('/manifest')
|
||||
.matchHeader('authorization', 'Bearer invalid_token')
|
||||
|
||||
Reference in New Issue
Block a user