www: a161c0a4: lighttpd is dumb and sets the response c...

markdoliner at pidgin.im markdoliner at pidgin.im
Thu Jun 18 13:10:41 EDT 2009


-----------------------------------------------------------------
Revision: a161c0a4ed31b4cc80cebe8c8a866dd7c311815d
Ancestor: 656a48c5bb296117ed9f62d8653e2537c562fdde
Author: markdoliner at pidgin.im
Date: 2009-06-18T17:05:42
Branch: im.pidgin.www
URL: http://d.pidgin.im/viewmtn/revision/info/a161c0a4ed31b4cc80cebe8c8a866dd7c311815d

Modified files:
        htdocs/shared/404.php

ChangeLog: 

lighttpd is dumb and sets the response code to 200 instead of 404
when using server.error-handler-404.  I believe this to be a bug
in lighttpd... but in any case, we want our 404 page to be served
with a 404 error code

-------------- next part --------------
============================================================
--- htdocs/shared/404.php	8777c2df59ef7351059b9d34f4e6fd2c80007279
+++ htdocs/shared/404.php	5647ae546dc352623ee15c034482c96eb06c61bc
@@ -1,4 +1,6 @@
 <?
+  header('HTTP/1.1 404 Not Found');
+
   // Update these to match the current page.
   $page['title'] =   "404 Not Found";
   $page['section'] = "";


More information about the Commits mailing list