Beispiel #1
0
 def _read_status(self):
     s = self.fp.read()
     print('-' * 20, 'Response', '-' * 20)
     print(s.split(b'\r\n\r\n')[0].decode('ascii'))
     self.fp = io.BytesIO(s)
     return HTTPResponse._read_status(self)
 def _read_status(self):
     s = self.fp.read()
     print( '-' * 20, 'Response', '-' * 20)
     print(s.split('\r\n\r\n')[0])  # print only header section
     self.fp = StringIO(s.decode("utf-8"))
     return HTTPResponse._read_status(self)
Beispiel #3
0
 def _read_status(self):
     s = self.fp.read()
     print('-' * 20, 'Response', '-' * 20)
     print(s.split(b'\r\n\r\n')[0].decode('ascii'))
     self.fp = io.BytesIO(s)
     return HTTPResponse._read_status(self)