From cb059b34b5055195b5cfb7eb5ab0abf93cba50ef Mon Sep 17 00:00:00 2001 From: "Steven A. Kasanga" Date: Thu, 21 Mar 2024 12:04:07 +0300 Subject: [PATCH] Solved a bug which prevented the use of base url in requests without supplying url in http requests especially in graphql requests where there is only one url --- lib/get_connect/http/src/http.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/get_connect/http/src/http.dart b/lib/get_connect/http/src/http.dart index c1d927346..4631bca7a 100644 --- a/lib/get_connect/http/src/http.dart +++ b/lib/get_connect/http/src/http.dart @@ -90,7 +90,7 @@ class GetHttpClient { Uri createUri(String? url, Map? query) { if (baseUrl != null) { - url = baseUrl! + url!; + url = baseUrl! + url ?? ""; } final uri = Uri.parse(url!); if (query != null) {