Skip to content

Commit 2066ce5

Browse files
committed
#9: HTTP status code should be passed as integer
1 parent fe4ad0a commit 2066ce5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Tools/HeadersParser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function parseArray(array $headers, ResponseInterface $response)
3232
$reasonPhrase = count($parts) > 2 ? $parts[2] : '';
3333
/** @var ResponseInterface $response */
3434
$response = $response
35-
->withStatus($parts[1], $reasonPhrase)
35+
->withStatus((int) $parts[1], $reasonPhrase)
3636
->withProtocolVersion(substr($parts[0], 5));
3737

3838
foreach ($headers as $headerLine) {

0 commit comments

Comments
 (0)