Development

Changeset 2005

You must first sign up to be able to contribute.

Changeset 2005

Show
Ignore:
Timestamp:
09/08/06 10:44:03 (2 years ago)
Author:
fabien
Message:

fixed exceptions to send a 500 http status instead of 200

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/exception/sfException.class.php

    r1869 r2005  
    103103    } 
    104104 
     105    header('HTTP/1.0 500 Internal Server Error'); 
     106 
    105107    // send an error 500 if not in debug mode 
    106108    if (!sfConfig::get('sf_debug')) 
    107109    { 
    108       header('HTTP/1.0 500 Internal Server Error'); 
    109110      $file = sfConfig::get('sf_web_dir').'/error500.html'; 
    110111      if (is_readable($file))