Skip to content

Commit 4194657

Browse files
committed
Assume HTTP 200 when no status code has been sent or returned
1 parent 618b46f commit 4194657

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Integration/LegacyCaptureResponseFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ private static function runLegacyAndCaptureResponse($legacyExecutionCallback)
3838

3939
if (null === $statusCode) {
4040
if (\function_exists('http_response_code')) {
41-
$statusCode = http_response_code();
41+
$statusCode = http_response_code() ?: 200;
4242
} else {
4343
$statusCode = 200;
4444
}

0 commit comments

Comments
 (0)