Browse Source

switch to readign json instead of using as_request function

master
Edoardo Putti 8 years ago
parent
commit
701704b03c
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      certificate_requests.py

+ 3
- 3
certificate_requests.py View File

@ -52,9 +52,9 @@ class RequestLoader(object):
stream,
)
requester = request_data.get('userName', None) or request_data.get('hostName', None)
root_requested = request_data.get('rootRequested', False)
key_data = request_data.get('keyData', None)
requester = request_data['request'].get('userName', None) or request_data.get('hostName', None)
root_requested = request_data['request'].get('rootRequested', False)
key_data = request_data['request'].get('keyData', None)
# attribute cannot be read from
# json, must add after decoding


Loading…
Cancel
Save