Commit 4245c229 by David Ormsbee

Don't verify SSL cert when submitting to Software Secure (they're using…

Don't verify SSL cert when submitting to Software Secure (they're using self-signed cert for the moment).
parent ff492697
...@@ -529,7 +529,8 @@ class SoftwareSecurePhotoVerification(PhotoVerification): ...@@ -529,7 +529,8 @@ class SoftwareSecurePhotoVerification(PhotoVerification):
response = requests.post( response = requests.post(
settings.VERIFY_STUDENT["SOFTWARE_SECURE"]["API_URL"], settings.VERIFY_STUDENT["SOFTWARE_SECURE"]["API_URL"],
headers=headers, headers=headers,
data=json.dumps(body, indent=2, sort_keys=True, ensure_ascii=False).encode('utf-8') data=json.dumps(body, indent=2, sort_keys=True, ensure_ascii=False).encode('utf-8'),
verify=False
) )
log.debug("Sent request to Software Secure for {}".format(self.receipt_id)) log.debug("Sent request to Software Secure for {}".format(self.receipt_id))
log.debug("Headers:\n{}\n\n".format(headers)) log.debug("Headers:\n{}\n\n".format(headers))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment