Skip to content

Commit

Permalink
Merge remote-tracking branch 'grydstedt/master' into work
Browse files Browse the repository at this point in the history
  • Loading branch information
bdarnell committed Feb 20, 2012
2 parents ceabffe + 1157a55 commit 9431921
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tornado/curl_httpclient.py
Expand Up @@ -395,8 +395,11 @@ def ioctl(cmd):
curl.unsetopt(pycurl.USERPWD)
logging.debug("%s %s", request.method, request.url)

if request.client_key is not None or request.client_cert is not None:
raise ValueError("Client certificate not supported with curl_httpclient")
if request.client_cert is not None:
curl.setopt(pycurl.SSLCERT, request.client_cert)

if request.client_key is not None:
curl.setopt(pycurl.SSLKEY, request.client_key)

if threading.activeCount() > 1:
# libcurl/pycurl is not thread-safe by default. When multiple threads
Expand Down

0 comments on commit 9431921

Please sign in to comment.