Skip to content

Commit

Permalink
Update GSRequest params description
Browse files Browse the repository at this point in the history
  • Loading branch information
edarevsky committed Dec 11, 2024
1 parent 17b8e27 commit 70132de
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion GSSDK.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ def __init__(self, apiKey=None, secretKey=None, apiMethod=None, params=None, use
@param params the request parameters
@param useHTTPS useHTTPS set this to true if you want to use HTTPS.
@param userKey A key of an admin user with extra permissions.
@param enable_host_check Hostcheck can be disabled by passing enable_host_check=false when using HTTPS. Can be necessary when using proxy. Default is True
If this parameter is provided, then the secretKey parameter is assumed to be the admin user's secret key and not the site's secret key.
"""

Expand Down Expand Up @@ -234,7 +235,7 @@ def curl(self, url, params=None, timeout=None, enable_host_check=True):
if self._proxy:
opener = build_opener(
HTTPHandler(),
ValidHTTPSHandler(enable_host_check),
ValidHTTPSHandler(enable_host_check), # maybe always send False???
ProxyHandler({proto: self._proxy}))
else:
opener = build_opener(
Expand Down

0 comments on commit 70132de

Please sign in to comment.