Add default user-agent 'actions/http-client' when none provided

Co-authored-by: TingluoHuang <[email protected]>
This commit is contained in:
copilot-swe-agent[bot]
2026-01-06 18:10:12 +00:00
co-authored by TingluoHuang
parent 97f5a6f0dc
commit 3a191eecf6
2 changed files with 5 additions and 9 deletions
@@ -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