Skip to content

Commit

Permalink
enhance generate_url
Browse files Browse the repository at this point in the history
  • Loading branch information
alzheltkovskiy-hubspot committed Jan 13, 2025
1 parent 305cefb commit 8053d57
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hubspot/utils/requests/http_request_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ def generate_url(self) -> str:
qs = self.options.get("qs")
if qs:
query_string = urlencode(qs, doseq=True)
url += f"?{query_string}"
delimiter = "&" if "?" in url else "?"
url += f"{delimiter}{query_string}"

return url

Expand Down

0 comments on commit 8053d57

Please sign in to comment.