diff --git a/tools/scan-view/ScanView.py b/tools/scan-view/ScanView.py index 90437772a5..6b70b283ba 100644 --- a/tools/scan-view/ScanView.py +++ b/tools/scan-view/ScanView.py @@ -176,9 +176,6 @@ class ScanViewRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler): self.copyfile(f, self.wfile) f.close() - def send_internal_error(self, message): - return self.send_string('ERROR: %s'%(message,), 'text/plain') - def submit_bug(self): title = self.fields.get('title') description = self.fields.get('description') @@ -278,7 +275,7 @@ class ScanViewRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler): try: keys = self.load_report(report) except IOError: - return self.send_internal_error('Invalid report.') + return self.send_error(400, 'Invalid report.') initialTitle = keys.get('DESC','') initialDescription = """\ @@ -338,7 +335,7 @@ function updateReporterOptions() { } } -
+