Skip to content

Commit

Permalink
Merge pull request #68 from koriym/content-type
Browse files Browse the repository at this point in the history
lower-case letter for contet-type
  • Loading branch information
koriym committed Apr 30, 2015
2 parents 4e8ba40 + 36de6a7 commit c6b39ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Provide/Error/VndError.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public function handle(\Exception $e, Request $request)
*/
public function transfer()
{
$this->errorPage->headers['Content-Type'] = self::CONTENT_TYPE;
$this->errorPage->headers['content-type'] = self::CONTENT_TYPE;
$this->transfer->__invoke($this->errorPage, []);
}

Expand Down
2 changes: 1 addition & 1 deletion tests/Provide/Error/VndErrorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function testNotFound()
$e = new ResourceNotFoundException('', 404);
$this->vndError->handle($e, new RouterMatch)->transfer();
$this->assertSame([404], FakeHttpResponder::$code);
$this->assertSame([['Content-Type: application/vnd.error+json', false]], FakeHttpResponder::$headers);
$this->assertSame([['content-type: application/vnd.error+json', false]], FakeHttpResponder::$headers);
$this->assertSame('{"message":"Not Found"}', FakeHttpResponder::$content);
}

Expand Down

0 comments on commit c6b39ce

Please sign in to comment.