Closed alexott closed 3 years ago
The current method of creating URL has one big problem - it doesn't do urlencode of passed parameters, so it will lead to errors if key name or value contain special characters, such as, &, +, etc.
&
+
This PR fixes this problem by using built-in functionality of the requests library that can automatically urlencode these parameters: https://docs.python-requests.org/en/latest/api/#requests.request
requests
Assigned this PR for review by @dveuve
The current method of creating URL has one big problem - it doesn't do urlencode of passed parameters, so it will lead to errors if key name or value contain special characters, such as,
&
,+
, etc.This PR fixes this problem by using built-in functionality of the
requests
library that can automatically urlencode these parameters: https://docs.python-requests.org/en/latest/api/#requests.request