Skip to content

Commit

Permalink
Update user-agent format.
Browse files Browse the repository at this point in the history
  • Loading branch information
rkistner committed Sep 6, 2024
1 parent 4130a72 commit 4265aa6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ String powerSyncUserAgent() {
}
// Ideally we'd get an OS version as well, but that's a little complex.
// Platform.operatingSystemVersion is very verbose.
return 'powersync-dart/$libraryVersion ($dart; ${Platform.operatingSystem})';
return 'powersync-dart/$libraryVersion $dart ${Platform.operatingSystem}';
}

Map<String, String> userAgentHeaders() {
Expand Down
2 changes: 1 addition & 1 deletion packages/powersync/lib/src/user_agent/user_agent_web.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'package:powersync/src/version.dart';

String powerSyncUserAgent() {
return 'powersync-dart/$libraryVersion (flutter-web)';
return 'powersync-dart/$libraryVersion Dart (flutter-web)';
}

Map<String, String> userAgentHeaders() {
Expand Down

0 comments on commit 4265aa6

Please sign in to comment.