Skip to content

Commit 82f48c5

Browse files
authored
Merge pull request #553 from leancloud/fix-lc-env
Prefer LEANCLOUD_* envs to LC_* ones
2 parents 6a359b3 + d697471 commit 82f48c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

leancloud/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def new_func(*args, **kwargs):
114114

115115
def get_url(part):
116116
# try to use the base URL from environ
117-
url = os.environ.get("LC_API_SERVER") or os.environ.get("LEANCLOUD_API_SERVER")
117+
url = os.environ.get("LEANCLOUD_API_SERVER") or os.environ.get("LC_API_SERVER")
118118
if url:
119119
return "{}/{}{}".format(url, SERVER_VERSION, part)
120120

0 commit comments

Comments
 (0)