Skip to content

Commit aa6c173

Browse files
fix(Transport): Disable automatic User Agent Suffix [clone of #1420] (#1423)
CLONE OF #1420 This small fix to the Kotlin Transport code, disables automatic User Agent suffixing by the Google-HTTP-Java library. Looker is very specific about User Agent names, especially when using cookieless embedding sessions and this change will fix the contract violation between this code and the API. Related to this [discussion](5407e63#commitcomment-136501445). Co-authored-by: Daniel Lopes <daniel.lopes@optimizely.com>
1 parent 13f209c commit aa6c173

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kotlin/src/main/com/looker/rtl/Transport.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ class Transport(val options: TransportOptions) {
351351
finalizedRequestSettings.method.toString(),
352352
GenericUrl(finalizedRequestSettings.url),
353353
httpContent,
354-
)
354+
).setSuppressUserAgentSuffix(true)
355355

356356
// TODO get overrides parameter to work without causing compilation errors in UserSession
357357
// overrides: TransportOptions? = null): SDKResponse {

0 commit comments

Comments
 (0)