diff options
author | Ted Kremenek <kremenek@apple.com> | 2011-02-21 19:26:48 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2011-02-21 19:26:48 +0000 |
commit | 57cbb0de091a05a6510f0a7278ee8da57a4d27fc (patch) | |
tree | 1c04f955c6703b09d902b20d9d16d500417563c1 /tools/scan-view | |
parent | 77efc680156bc28d3c0d2e70f156904f91328b21 (diff) | |
download | clang-57cbb0de091a05a6510f0a7278ee8da57a4d27fc.tar.gz clang-57cbb0de091a05a6510f0a7278ee8da57a4d27fc.tar.bz2 clang-57cbb0de091a05a6510f0a7278ee8da57a4d27fc.tar.xz |
Fix call to send_error() in scan-view. An int error code is expected but a string was being sent. Patch by Andrew Price!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126138 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/scan-view')
-rw-r--r-- | tools/scan-view/ScanView.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/scan-view/ScanView.py b/tools/scan-view/ScanView.py index 837adae0f7..c6dddba6a7 100644 --- a/tools/scan-view/ScanView.py +++ b/tools/scan-view/ScanView.py @@ -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 = {} |