Skip to content

Commit 42605e9

Browse files
committed
Test json content-type header
1 parent 0be8403 commit 42605e9

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

tests/system/HTTP/CURLRequestTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -753,6 +753,7 @@ public function testSetJSON()
753753
$this->request->setJSON($params)->post('/post');
754754

755755
$this->assertEquals(json_encode($params), $this->request->getBody());
756+
$this->assertEquals('application/json', $this->request->getHeaderLine('Content-Type'));
756757
}
757758

758759
//--------------------------------------------------------------------

0 commit comments

Comments
 (0)