File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -1465,9 +1465,8 @@ public function diagnose($return = false)
1465
1465
1466
1466
echo
1467
1467
'Sent an HTTP ' . $ request_method . ' request to " ' . $ request_url . '". ' . "\n" .
1468
- 'Request contained ' . (
1469
- $ request_headers_count === 0 ? 'no headers. ' :
1470
- $ request_headers_count . ' headers: '
1468
+ 'Request contained ' . $ request_headers_count . ' ' . (
1469
+ $ request_headers_count === 1 ? 'header: ' : 'headers: '
1471
1470
) . "\n" ;
1472
1471
if ($ this ->requestHeaders !== null ) {
1473
1472
$ i = 1 ;
@@ -1486,9 +1485,8 @@ public function diagnose($return = false)
1486
1485
}
1487
1486
1488
1487
echo
1489
- 'Received response containing ' . (
1490
- $ response_headers_count === 0 ? 'no headers. ' :
1491
- $ response_headers_count . ' headers: '
1488
+ 'Response contains ' . $ response_headers_count . ' ' . (
1489
+ $ response_headers_count === 1 ? 'header: ' : 'headers: '
1492
1490
) . "\n" ;
1493
1491
if ($ this ->responseHeaders !== null ) {
1494
1492
$ i = 1 ;
You can’t perform that action at this time.
0 commit comments