Show More
@@ -60,7 +60,10 b' class _httprequesthandler(BaseHTTPServer' | |||||
60 | self._log_any(self.server.accesslog, format, *args) |
|
60 | self._log_any(self.server.accesslog, format, *args) | |
61 |
|
61 | |||
62 | def log_request(self, code='-', size='-'): |
|
62 | def log_request(self, code='-', size='-'): | |
63 | xheaders = [h for h in self.headers.items() if h[0].startswith('x-')] |
|
63 | xheaders = [] | |
|
64 | if util.safehasattr(self, 'headers'): | |||
|
65 | xheaders = [h for h in self.headers.items() | |||
|
66 | if h[0].startswith('x-')] | |||
64 | self.log_message('"%s" %s %s%s', |
|
67 | self.log_message('"%s" %s %s%s', | |
65 | self.requestline, str(code), str(size), |
|
68 | self.requestline, str(code), str(size), | |
66 | ''.join([' %s:%s' % h for h in sorted(xheaders)])) |
|
69 | ''.join([' %s:%s' % h for h in sorted(xheaders)])) |
General Comments 0
You need to be logged in to leave comments.
Login now