[cfe-commits] r126138 - /cfe/trunk/tools/scan-view/ScanView.py
Ted Kremenek
kremenek at apple.com
Mon Feb 21 11:26:48 PST 2011
Author: kremenek
Date: Mon Feb 21 13:26:48 2011
New Revision: 126138
URL: http://llvm.org/viewvc/llvm-project?rev=126138&view=rev
Log:
Fix call to send_error() in scan-view. An int error code is expected but a string was being sent. Patch by Andrew Price!
Modified:
cfe/trunk/tools/scan-view/ScanView.py
Modified: cfe/trunk/tools/scan-view/ScanView.py
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/scan-view/ScanView.py?rev=126138&r1=126137&r2=126138&view=diff
==============================================================================
--- cfe/trunk/tools/scan-view/ScanView.py (original)
+++ cfe/trunk/tools/scan-view/ScanView.py Mon Feb 21 13:26:48 2011
@@ -641,7 +641,7 @@
def send_head(self, fields=None):
if (self.server.options.onlyServeLocal and
self.client_address[0] != '127.0.0.1'):
- return self.send_error('401', 'Unauthorized host.')
+ return self.send_error(401, 'Unauthorized host.')
if fields is None:
fields = {}
More information about the cfe-commits
mailing list