bugs fixed

This commit is contained in:
Tilakraj-B
2024-03-23 03:10:58 +05:30
parent 1902cd39b2
commit be39eade89
2 changed files with 22 additions and 11 deletions

View File

@ -163,7 +163,7 @@ String? formatBody(String? body, MediaType? mediaType) {
String getBaseUrl(String url) {
Uri uri = Uri.parse(url);
return "${uri.scheme}://${uri.host}";
return "${uri.scheme}://${uri.host}${uri.hasPort ? ":${uri.port}" : ""}${uri.hasFragment ? "#${uri.fragment}" : ""}";
}
String getUrlPath(String url) {