Permalink
Browse files

$code variable cannot possibly be set to 204, using $this->status['co…

…de'] instead
  • Loading branch information...
mikegreiling committed Mar 21, 2013
1 parent 6bad147 commit d0eae563779d23b4cbc14a8c0651fcf051e5085f
Showing with 1 addition and 1 deletion.
  1. +1 −1 action/Response.php
View
@@ -132,7 +132,7 @@ public function render() {
$this->_writeHeader("{$name}: {$value}");
}
}
- if ($code == 302 || $code == 204) {
+ if ($this->status['code'] == 302 || $this->status['code'] == 204) {
return;
}
$chunked = $this->body(null, $this->_config);

0 comments on commit d0eae56

Please sign in to comment.