Skip to content

Commit

Permalink
add bundle id in user agent
Browse files Browse the repository at this point in the history
  • Loading branch information
lamarios committed Dec 23, 2024
1 parent 986a0b5 commit f64b4c0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/http_overrides.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ class MyHttpOverrides extends HttpOverrides {
@override
HttpClient createHttpClient(SecurityContext? context) {
return super.createHttpClient(context)
..userAgent = 'Clipious/${packageInfo?.version ?? '0.0.0'}'
..userAgent =
'Clipious/${packageInfo?.version ?? '0.0.0'} (${packageInfo?.packageName ?? ''})'
..badCertificateCallback = (X509Certificate cert, String host, int port) {
// if true, it will allow all certs, if false it will throw error on a bad cert
return db.getSettings(skipSslVerificationSettingName)?.value == 'true';
Expand Down

0 comments on commit f64b4c0

Please sign in to comment.