소스 검색

[fix] 404 HTTP status on not found pages - closes #681

Adam Tauber 8 년 전
부모
커밋
8d4dd3c515
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      searx/webapp.py

+ 1
- 1
searx/webapp.py 파일 보기

@@ -721,7 +721,7 @@ def config():
721 721
 
722 722
 @app.errorhandler(404)
723 723
 def page_not_found(e):
724
-    return render('404.html')
724
+    return render('404.html'), 404
725 725
 
726 726
 
727 727
 def run():