Skip to content

Commit 5207fb7

Browse files
Prepend user-supplied user-agent (#30)
1 parent 46a25f9 commit 5207fb7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/main/java/ai/spice/SpiceClient.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,8 @@ public SpiceClient(String appId, String apiKey, URI flightAddress, URI httpAddre
121121
if (Strings.isNullOrEmpty(userAgent)) {
122122
uaString = Config.getUserAgent();
123123
} else {
124-
uaString = userAgent;
124+
// Prepend the user-supplied user agent string with the Spice.ai user agent
125+
uaString = userAgent + " " + Config.getUserAgent();
125126
}
126127
headers.put("User-Agent", uaString);
127128

0 commit comments

Comments
 (0)