Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Commit

Permalink
Capitalize "Content-Type"
Browse files Browse the repository at this point in the history
  • Loading branch information
Roumen Damianoff committed Dec 11, 2015
1 parent 953e9df commit db890d3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Roumen/Feed/Feed.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public function render($format = null, $cache = null, $key = null)
// if cache is on and there is cached feed => return it
if ($this->caching > 0 && Cache::has($this->cacheKey))
{
return Response::make(Cache::get($this->cacheKey), 200, array('Content-type' => $this->ctype.'; charset='.$this->charset));
return Response::make(Cache::get($this->cacheKey), 200, array('Content-Type' => $this->ctype.'; charset='.$this->charset));
}

if (empty($this->lang)) $this->lang = Config::get('application.language');
Expand Down Expand Up @@ -171,14 +171,14 @@ public function render($format = null, $cache = null, $key = null)
{
Cache::put($this->cacheKey, View::make($this->getView($this->customView), $viewData)->render(), $this->caching);

return Response::make(Cache::get($this->cacheKey), 200, array('Content-type' => $this->ctype.'; charset='.$this->charset));
return Response::make(Cache::get($this->cacheKey), 200, array('Content-Type' => $this->ctype.'; charset='.$this->charset));
}
else if ($this->caching == 0)
{
// if cache is 0 delete the key (if exists) and return response
$this->clearCache();

return Response::make(View::make($this->getView($this->customView), $viewData), 200, array('Content-type' => $this->ctype.'; charset='.$this->charset));
return Response::make(View::make($this->getView($this->customView), $viewData), 200, array('Content-Type' => $this->ctype.'; charset='.$this->charset));
}
else if ($this->caching < 0)
{
Expand Down

0 comments on commit db890d3

Please sign in to comment.