Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Changed else if to elseif.

  • Loading branch information...
commit 374dd55270115965b349045aa3b3727db8fe79e9 1 parent 9b47995
@frederikweber frederikweber authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/Cake/Network/CakeResponse.php
View
2  lib/Cake/Network/CakeResponse.php
@@ -411,7 +411,7 @@ protected function _setContentType() {
}
if (strpos($this->_contentType, 'text/') === 0) {
$this->header('Content-Type', "{$this->_contentType}; charset={$this->_charset}");
- } else if ($this->_contentType === 'application/json') {
+ } elseif ($this->_contentType === 'application/json') {
$this->header('Content-Type', "{$this->_contentType}; charset=UTF-8");
} else {
$this->header('Content-Type', "{$this->_contentType}");
Please sign in to comment.
Something went wrong with that request. Please try again.