Skip to content

Commit 038c015

Browse files
committed
Update diagnostic output wording
1 parent 1226bb1 commit 038c015

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/Curl/Curl.php

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1465,9 +1465,8 @@ public function diagnose($return = false)
14651465

14661466
echo
14671467
'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:'
14711470
) . "\n";
14721471
if ($this->requestHeaders !== null) {
14731472
$i = 1;
@@ -1486,9 +1485,8 @@ public function diagnose($return = false)
14861485
}
14871486

14881487
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:'
14921490
) . "\n";
14931491
if ($this->responseHeaders !== null) {
14941492
$i = 1;

0 commit comments

Comments
 (0)