Show More
@@ -615,6 +615,10 b' def wrapgetresponse(cls):' | |||||
615 | return safegetresponse |
|
615 | return safegetresponse | |
616 |
|
616 | |||
617 | class HTTPConnection(httplib.HTTPConnection): |
|
617 | class HTTPConnection(httplib.HTTPConnection): | |
|
618 | # url.httpsconnection inherits from this. So when adding/removing | |||
|
619 | # attributes, be sure to audit httpsconnection() for unintended | |||
|
620 | # consequences. | |||
|
621 | ||||
618 | # use the modified response class |
|
622 | # use the modified response class | |
619 | response_class = HTTPResponse |
|
623 | response_class = HTTPResponse | |
620 | send = safesend |
|
624 | send = safesend |
@@ -339,7 +339,7 b' class logginghttphandler(httphandler):' | |||||
339 | return logginghttpconnection(createconnection, *args, **kwargs) |
|
339 | return logginghttpconnection(createconnection, *args, **kwargs) | |
340 |
|
340 | |||
341 | if has_https: |
|
341 | if has_https: | |
342 |
class httpsconnection( |
|
342 | class httpsconnection(keepalive.HTTPConnection): | |
343 | response_class = keepalive.HTTPResponse |
|
343 | response_class = keepalive.HTTPResponse | |
344 | default_port = httplib.HTTPS_PORT |
|
344 | default_port = httplib.HTTPS_PORT | |
345 | # must be able to send big bundle as stream. |
|
345 | # must be able to send big bundle as stream. | |
@@ -348,7 +348,7 b' if has_https:' | |||||
348 |
|
348 | |||
349 | def __init__(self, host, port=None, key_file=None, cert_file=None, |
|
349 | def __init__(self, host, port=None, key_file=None, cert_file=None, | |
350 | *args, **kwargs): |
|
350 | *args, **kwargs): | |
351 |
|
|
351 | keepalive.HTTPConnection.__init__(self, host, port, *args, **kwargs) | |
352 | self.key_file = key_file |
|
352 | self.key_file = key_file | |
353 | self.cert_file = cert_file |
|
353 | self.cert_file = cert_file | |
354 |
|
354 |
General Comments 0
You need to be logged in to leave comments.
Login now