diff --git a/linkcheck/httplib2.py b/linkcheck/httplib2.py index 78b143a5..72f983ba 100644 --- a/linkcheck/httplib2.py +++ b/linkcheck/httplib2.py @@ -594,8 +594,9 @@ class HTTPConnection: self.strict = strict def __str__ (self): - return "" % \ - (self.__state, self._method, self.sock, self._buffer) + return "" % \ + (self.__state, self._method, self.sock, self._buffer, self.__response) def _set_hostport(self, host, port): if port is None: @@ -895,6 +896,9 @@ class HTTPConnection: return response + def is_idle (self): + return self.__state == _CS_IDLE + # The next several classes are used to define FakeSocket,a socket-like # interface to an SSL connection.