summaryrefslogtreecommitdiff
path: root/python2
diff options
context:
space:
mode:
authorJoe Gregorio <jcgregorio@google.com>2011-06-08 11:29:52 -0400
committerJoe Gregorio <jcgregorio@google.com>2011-06-08 11:29:52 -0400
commit22f8aad8b672d3e18e63d5df0b48cd128d8ace5a (patch)
treef974f94ff8e19f104cfd3c03c73d736f4476cb89 /python2
parentb53de9b961c5e28d4976a0ae2793846a267bc3c0 (diff)
downloadhttplib2-22f8aad8b672d3e18e63d5df0b48cd128d8ace5a.tar.gz
Fixed app engine SLLCertificateError catching
Diffstat (limited to 'python2')
-rw-r--r--python2/httplib2/__init__.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/python2/httplib2/__init__.py b/python2/httplib2/__init__.py
index 1c27e00..fb090a9 100644
--- a/python2/httplib2/__init__.py
+++ b/python2/httplib2/__init__.py
@@ -933,6 +933,7 @@ try:
from google.appengine.api.urlfetch import InvalidURLError
from google.appengine.api.urlfetch import DownloadError
from google.appengine.api.urlfetch import ResponseTooLargeError
+ from google.appengine.api.urlfetch import SSLCertificateError
class ResponseDict(dict):
@@ -959,6 +960,7 @@ try:
self.response = None
self.scheme = 'http'
self.validate_certificate = not disable_certificate_validation
+ self.sock = True
def request(self, method, url, body, headers):
# Calculate the absolute URI, which fetch requires