equal
deleted
inserted
replaced
52 xheaders = [h for h in self.headers.items() if h[0].startswith('x-')] |
52 xheaders = [h for h in self.headers.items() if h[0].startswith('x-')] |
53 self.log_message('"%s" %s %s%s', |
53 self.log_message('"%s" %s %s%s', |
54 self.requestline, str(code), str(size), |
54 self.requestline, str(code), str(size), |
55 ''.join([' %s:%s' % h for h in sorted(xheaders)])) |
55 ''.join([' %s:%s' % h for h in sorted(xheaders)])) |
56 # Flush for Windows, so output isn't lost on TerminateProcess() |
56 # Flush for Windows, so output isn't lost on TerminateProcess() |
|
57 sys.stdout.flush() |
57 sys.stderr.flush() |
58 sys.stderr.flush() |
58 |
59 |
59 def _connect_to(self, netloc, soc): |
60 def _connect_to(self, netloc, soc): |
60 i = netloc.find(':') |
61 i = netloc.find(':') |
61 if i >= 0: |
62 if i >= 0: |