Skip to content

Commit

Permalink
Merge pull request #374 from HubSpot/fix/urlencode-qs-api_request
Browse files Browse the repository at this point in the history
Fix urlencoding qs for api_request
  • Loading branch information
alzheltkovskiy-hubspot authored Jan 13, 2025
2 parents 6572070 + 8053d57 commit d19a809
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions hubspot/utils/requests/http_request_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,9 @@ def generate_url(self) -> str:

qs = self.options.get("qs")
if qs:
query_string = urlencode(qs)
url += f"?{query_string}"
query_string = urlencode(qs, doseq=True)
delimiter = "&" if "?" in url else "?"
url += f"{delimiter}{query_string}"

return url

Expand Down

0 comments on commit d19a809

Please sign in to comment.