Add default user-agent 'actions/http-client' when none provided
Co-authored-by: TingluoHuang <[email protected]>
This commit is contained in:
co-authored by
TingluoHuang
parent
97f5a6f0dc
commit
3a191eecf6
@@ -60,7 +60,7 @@ describe('basics', () => {
|
||||
const body: string = await res.readBody()
|
||||
const obj = JSON.parse(body)
|
||||
expect(obj.url).toBe('https://postman-echo.com/get')
|
||||
expect(obj.headers['user-agent']).toBeFalsy()
|
||||
expect(obj.headers['user-agent']).toBe('actions/http-client')
|
||||
})
|
||||
|
||||
/* TODO write a mock rather then relying on a third party
|
||||
|
||||
Reference in New Issue
Block a user