diff --git a/lib/http_overrides.dart b/lib/http_overrides.dart index aefa5df4..72d24033 100644 --- a/lib/http_overrides.dart +++ b/lib/http_overrides.dart @@ -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';