Skip to content

Commit a1d56b6

Browse files
committed
fix: override the user agent when replying requests
1 parent d3156e6 commit a1d56b6

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tools/apitester/helpers.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ func PlayInteraction(t *testing.T, interaction *cassette.Interaction) *http.Resp
6868
t.Fatal(err)
6969
}
7070

71+
req.Header.Set("User-Agent", "osv.dev/apitester")
72+
7173
resp, err := http.DefaultClient.Do(req)
7274

7375
if err != nil {

0 commit comments

Comments
 (0)