Skip to content
Myr

only verify private cert when verity is true

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Kenneth Reitz · committed by Kenneth Reitz · parent 093709b · Browse files · 1 file+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:requests/models.py+2 added-2 removed
510 unmodified lines
511 else:512 conn.cert_reqs = 'CERT_NONE'513 conn.ca_certs = None514515 if self.cert:516 if type(self.cert) is tuple:515 if self.cert and self.verify:516 if len(self.cert) == 2:517 conn.cert_file = self.cert[0]518 conn.key_file = self.cert[1]519 else:520 conn.cert_file = self.cert
308 unmodified lines