Skip to content
This repository was archived by the owner on Jan 29, 2026. It is now read-only.

Commit f64b4c0

Browse files
committed
add bundle id in user agent
1 parent 986a0b5 commit f64b4c0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/http_overrides.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ class MyHttpOverrides extends HttpOverrides {
77
@override
88
HttpClient createHttpClient(SecurityContext? context) {
99
return super.createHttpClient(context)
10-
..userAgent = 'Clipious/${packageInfo?.version ?? '0.0.0'}'
10+
..userAgent =
11+
'Clipious/${packageInfo?.version ?? '0.0.0'} (${packageInfo?.packageName ?? ''})'
1112
..badCertificateCallback = (X509Certificate cert, String host, int port) {
1213
// if true, it will allow all certs, if false it will throw error on a bad cert
1314
return db.getSettings(skipSslVerificationSettingName)?.value == 'true';

0 commit comments

Comments
 (0)