Skip to content

Commit

Permalink
put user-agents back
Browse files Browse the repository at this point in the history
  • Loading branch information
zeroshade committed Feb 13, 2024
1 parent 849e205 commit 1391f3b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions catalog/rest_internal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func TestAuthHeader(t *testing.T) {
assert.Equal(t, http.Header{
"Authorization": {"Bearer some_jwt_token"},
"Content-Type": {"application/json"},
"User-Agent": {"PyIceberg/0.5.1"},
"User-Agent": {"GoIceberg/(unknown version)"},
"X-Client-Version": {icebergRestSpecVersion},
}, cat.cl.Transport.(*sessionTransport).defaultHeaders)
}
Expand Down Expand Up @@ -115,7 +115,7 @@ func TestAuthUriHeader(t *testing.T) {
assert.Equal(t, http.Header{
"Authorization": {"Bearer some_jwt_token"},
"Content-Type": {"application/json"},
"User-Agent": {"PyIceberg/0.5.1"},
"User-Agent": {"GoIceberg/(unknown version)"},
"X-Client-Version": {icebergRestSpecVersion},
}, cat.cl.Transport.(*sessionTransport).defaultHeaders)
}
2 changes: 1 addition & 1 deletion catalog/rest_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const (
var (
TestHeaders = http.Header{
"X-Client-Version": {"0.14.1"},
"User-Agent": {"PyIceberg/0.5.1"},
"User-Agent": {"GoIceberg/(unknown version)"},
"Authorization": {"Bearer " + TestToken},
}
OAuthTestHeaders = http.Header{
Expand Down

0 comments on commit 1391f3b

Please sign in to comment.