From 0d65af2efa78473b5818b7cad23aebf90ea12dd6 Mon Sep 17 00:00:00 2001 From: Fabian Freund Date: Tue, 16 Sep 2025 05:19:26 +0200 Subject: [PATCH] assume http protocol for localhost --- app/lib/utils/uri_parser.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/lib/utils/uri_parser.dart b/app/lib/utils/uri_parser.dart index 78de5944..9183f16f 100644 --- a/app/lib/utils/uri_parser.dart +++ b/app/lib/utils/uri_parser.dart @@ -40,7 +40,7 @@ Uri? tryParseUrl(String? input, {bool eagerParsing = false}) { if (_domainRegex.hasMatch(firstSegment)) { uri = Uri.tryParse('https://$input')?.replace(port: port); } else if (firstSegment == 'localhost') { - uri = Uri.tryParse('https://$input')?.replace(port: port); + uri = Uri.tryParse('http://$input')?.replace(port: port); } else if (InternetAddress.tryParse(firstSegment) != null) { uri = Uri.tryParse('https://$input')?.replace(port: port); }