This commit is contained in:
Enrique Blasco 2021-03-19 12:48:07 +01:00
parent 1188636818
commit 6b374d72b7
1 changed files with 5 additions and 0 deletions

View File

@ -29,7 +29,12 @@ class ApiUtils {
var url = this.getDefaults("base_url",context)
if (url.isNullOrEmpty()){
setDefaults("base_url", BASE_URL,context)
}else{
if (!url.contains("http")){
url = "https://"+url
}
}
return if (url.isNullOrEmpty()) BASE_URL else url
}