diff --git a/src/HttpBaseTest.php b/src/HttpBaseTest.php index e23bc4f..bea67e2 100644 --- a/src/HttpBaseTest.php +++ b/src/HttpBaseTest.php @@ -257,7 +257,7 @@ protected function assertRequest( $name = strtoupper(str_replace('-', '_', 'http-'.$name)); - if ('TRACE' === $method && 'HTTP_CONTENT_LENGTH' === $name && !isset($request['SERVER'][$name])) { + if (in_array($method, ['TRACE', 'HEAD'], true) && 'HTTP_CONTENT_LENGTH' === $name && !isset($request['SERVER'][$name])) { continue; }