diff --git a/mia_core/utils.py b/mia_core/utils.py index 0c5387d..20e4e0f 100644 --- a/mia_core/utils.py +++ b/mia_core/utils.py @@ -92,7 +92,10 @@ class UrlBuilder: return self.del_param(name).add_param(name, value) def __str__(self): - return self.base_path + "&".join([str(x) for x in self.params]) + if len(self.params) == 0: + return self.base_path + return self.base_path + "?" + "&".join([ + str(x) for x in self.params]) class Param: """A query parameter.