Skip to content

Commit edd912c

Browse files
Merge pull request #1778 from specialtactics/bugfix/dont-set-empty-content-type-header
Adds test condition
2 parents c6cadf2 + 0614df9 commit edd912c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/Http/Response/FactoryTest.php

+1
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ public function testMakingANoContentResponse()
7575
$response = $this->factory->noContent();
7676
$this->assertSame(204, $response->getStatusCode());
7777
$this->assertSame('', $response->getContent());
78+
$this->assertNull($response->headers->get('Content-Type'));
7879
}
7980

8081
public function testMakingCollectionRegistersUnderlyingClassWithTransformer()

0 commit comments

Comments
 (0)