mirror of
https://github.com/foss42/apidash.git
synced 2025-05-29 21:06:01 +08:00
bugs fixed
This commit is contained in:
@ -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) {
|
||||
|
Reference in New Issue
Block a user