public function sendHeaders()
     {
         $response = $this->getResponse();
         $headers = $response->getHeaders();
         $isAjax = $response->getRequest()->isAjax();

         if (isset($headers['Location']) && $response->isSuccess() && !$isAjax) {
             $response->setStatus(AnHttpResponse::SEE_OTHER);
         }

         return parent::sendHeaders();
     }
public function sendHeaders()
     {
         $response = $this->getResponse();
         $headers = $response->getHeaders();
         $isAjax = $response->getRequest()->isAjax();

         if (isset($headers['Location']) && $response->isSuccess() && !$isAjax) {
             $response->setStatus(AnHttpResponse::SEE_OTHER);
         }

         return parent::sendHeaders();
     }
public function sendHeaders ( ) { $ response = $ this -> getResponse ( ) ; $ headers = $ response -> getHeaders ( ) ; $ isAjax = $ response -> getRequest ( ) -> isAjax ( ) ; if ( isset ( $ headers [ 'Location' ] ) && $ response -> isSuccess ( ) && ! $ isAjax ) { $ response -> setStatus ( AnHttpResponse :: SEE_OTHER ) ; } return parent :: sendHeaders ( ) ; }
For all the success HTML responses unless its ajax, perform a redirect if the location
is set.

(non-PHPdoc)

@see LibBaseDispatcherResponseTransportAbstract::sendHeaders()
For all the success HTML responses unless its ajax perform a redirect if the location is set .