~ricardokirkner/rnr-server/submit-review-with-macaroons

« back to all changes in this revision

Viewing changes to src/core/utilities.py

  • Committer: Ricardo Kirkner
  • Date: 2016-05-16 17:49:16 UTC
  • Revision ID: ricardo.kirkner@canonical.com-20160516174916-a1q10pk8dqrvj96x
switch api from GET to POST

Show diffs side-by-side

added added

removed removed

Lines of Context:
200
200
            }),
201
201
        }
202
202
        url = settings.SCA_HOST_URL.strip('/') + '/dev/api/acl/verify/'
203
 
        response = requests.get(url, data=json.dumps(data))
 
203
        response = requests.post(url, data=json.dumps(data))
204
204
        if response.ok:
205
205
            data = response.json()
206
206
            if 'package_access' not in data.get('permissions', []):