raylu vor 11 Jahren
Ursprung
Commit
5f7b0db1c4
1 geänderte Dateien mit 2 neuen und 0 gelöschten Zeilen
  1. 2 0
      api/server.py

+ 2 - 0
api/server.py

@@ -39,6 +39,8 @@ def application(environ, start_response):
 				print 'no handler for', split
 		else:
 			print 'split was', split
+		start_response('404 Not Found', [('Content-type', 'text/plain')])
+		return ['404 Not Found']
 	except:
 		traceback.print_exc()
 		start_response('500 Internal Server Error', [('Content-type', 'text/plain')])