]> granicus.if.org Git - clang/commitdiff
Fix call to send_error() in scan-view. An int error code is expected but a string...
authorTed Kremenek <kremenek@apple.com>
Mon, 21 Feb 2011 19:26:48 +0000 (19:26 +0000)
committerTed Kremenek <kremenek@apple.com>
Mon, 21 Feb 2011 19:26:48 +0000 (19:26 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126138 91177308-0d34-0410-b5e6-96231b3b80d8

tools/scan-view/ScanView.py

index 837adae0f76356db9c1a01b7d46cfe6a1a1f6029..c6dddba6a76455bdc165ad328b402a049714d73c 100644 (file)
@@ -641,7 +641,7 @@ File Bug</h3>
     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 = {}