Skip to content
Browse files

Merge pull request #134 from dshafik/fix-tests

Fix code to solve failing test
  • Loading branch information...
2 parents cb2813a + d6f3e80 commit c98bf250b2eb7cce7c01d148762bbbc2d0ac1228 @helgi helgi committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/frapi/library/Frapi/Controller/Api.php
View
4 src/frapi/library/Frapi/Controller/Api.php
@@ -344,7 +344,7 @@ public function detectAndSetMimeType()
$types = $this->parseAcceptHeader();
if(empty($types)) {
- return false;
+ return array('mimeType' => false, 'outputFormat' => false);
}
if ($this->formatSetByExtension) {
@@ -397,7 +397,7 @@ public function detectAndSetMimeType()
}
}
- return array();
+ return array('mimeType' => false, 'outputFormat' => false);
}
/**

0 comments on commit c98bf25

Please sign in to comment.
Something went wrong with that request. Please try again.