Skip to content

Commit de2f224

Browse files
committed
[Fix] Use UserAgentEntry when it's set (#12)
Signed-off-by: Eric Bannatyne <[email protected]> Signed-off-by: Eric Bannatyne <[email protected]>
1 parent bc193eb commit de2f224

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

driver.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ func connect(opts *Options) (*Conn, error) {
186186
httpTransport, ok := transport.(*thrift.THttpClient)
187187
if ok {
188188
var userAgent string
189-
if opts.UserAgentEntry != "" {
189+
if opts.UserAgentEntry == "" {
190190
userAgent = fmt.Sprintf("%s/%s", DriverName, DriverVersion)
191191
} else {
192192
userAgent = fmt.Sprintf("%s/%s (%s)", DriverName, DriverVersion, opts.UserAgentEntry)

0 commit comments

Comments
 (0)