]> git.xonotic.org Git - xonotic/xonstat.git/commitdiff
Set status code to 404 for the 404 page.
authorAnt Zucaro <azucaro@gmail.com>
Wed, 28 Jan 2015 00:48:30 +0000 (19:48 -0500)
committerAnt Zucaro <azucaro@gmail.com>
Wed, 28 Jan 2015 00:48:30 +0000 (19:48 -0500)
This fixes #1435.

xonstat/views/exceptions.py

index 0cc9148f9fa25ebda6ccef96d1bb1cf87e391fb8..6d4c9a64691ea3a5674ae86fac432298db57a3b3 100644 (file)
@@ -2,4 +2,5 @@ import logging
 import random
 
 def notfound(request):
+    request.response.status = 404
     return {'rand': int(random.random() * 100)}