raylu 11 lat temu
rodzic
commit
5f7b0db1c4
1 zmienionych plików z 2 dodań i 0 usunięć
  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')])