Skip to content

Commit 3ee1fa6

Browse files
committed
Version 1 fix for user agent being empty
1 parent dce70ae commit 3ee1fa6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/bolt-connection/src/bolt/bolt-protocol-v1.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ export default class BoltProtocol {
184184
// passing notification filter on this protocol version throws an error
185185
assertNotificationFilterIsEmpty(notificationFilter, this._onProtocolError, observer)
186186

187-
this.write(RequestMessage.init(userAgent || boltAgent, authToken), observer, true)
187+
this.write(RequestMessage.init(userAgent === '' || userAgent == null ? boltAgent : userAgent, authToken), observer, true)
188188

189189
return observer
190190
}

0 commit comments

Comments
 (0)