summaryrefslogtreecommitdiff
path: root/tools/scan-view
diff options
context:
space:
mode:
Diffstat (limited to 'tools/scan-view')
-rw-r--r--tools/scan-view/ScanView.py2
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 = {}