Skip to content

Commit

Permalink
make project list retrieval anon http
Browse files Browse the repository at this point in the history
  • Loading branch information
jay0lee committed May 10, 2019
1 parent 3da78b6 commit eb4975e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gyb.py
Original file line number Diff line number Diff line change
Expand Up @@ -685,8 +685,9 @@ def getCRMService(login_hint):

GYB_PROJECT_APIS = 'https://raw.githubusercontent.com/jay0lee/got-your-back/master/project-apis.txt?'
def enableProjectAPIs(project_name, checkEnabled):
global httpc
global anonhttpc
s, c = httpc.request(GYB_PROJECT_APIS, 'GET')
s, c = anonhttpc.request(GYB_PROJECT_APIS, 'GET')
if s.status < 200 or s.status > 299:
print('ERROR: tried to retrieve %s but got %s' % (GYB_PROJECT_APIS, s.status))
sys.exit(0)
Expand Down

0 comments on commit eb4975e

Please sign in to comment.