Skip to content

Commit 92e664b

Browse files
committed
Add comment explaining new flag
1 parent 4802946 commit 92e664b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pusher_push_notifications/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,11 @@ def _make_request(self, method, path, path_params, body=None):
127127
url = _make_url(scheme='https', host=self.endpoint, path=path)
128128

129129
session = requests.Session()
130+
# We've had multiple support requests about this library not working
131+
# on PythonAnywhere (a popular python deployment platform)
132+
# They require that proxy servers be loaded from the environment when
133+
# making requests (on their free plan).
134+
# This flag enables this behaviour.
130135
if self._use_proxy_env_vars:
131136
session.proxies = _get_proxies_from_env()
132137

0 commit comments

Comments
 (0)