Skip to content
Permalink
Browse files

Fixed Cake\TestSuite\Stub\Response

  • Loading branch information...
ondrejmirtes committed Jan 8, 2017
1 parent b6832f2 commit 604e9a24fad2e4a6fb8d6366fe8355c9f2a91019
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/TestSuite/Stub/Response.php
@@ -13,7 +13,7 @@
*/
namespace Cake\TestSuite\Stub;
use Cake\Network\Response as Base;
use Cake\Http\Response as Base;
/**
* A response class intended for test cases.
@@ -28,7 +28,7 @@ class Response extends Base
*/
public function send()
{
if (isset($this->_headers['Location']) && $this->_status === 200) {
if ($this->hasHeader('Location') && $this->_status === 200) {
$this->statusCode(302);
}
$this->_setContentType();

0 comments on commit 604e9a2

Please sign in to comment.
You can’t perform that action at this time.