equal
deleted
inserted
replaced
613 return cls.getresponse(self) |
613 return cls.getresponse(self) |
614 safegetresponse.__doc__ = cls.getresponse.__doc__ |
614 safegetresponse.__doc__ = cls.getresponse.__doc__ |
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 |
621 getresponse = wrapgetresponse(httplib.HTTPConnection) |
625 getresponse = wrapgetresponse(httplib.HTTPConnection) |
622 |
626 |