diff --git a/src/HttpBaseTest.php b/src/HttpBaseTest.php index 7e340ac..1852721 100644 --- a/src/HttpBaseTest.php +++ b/src/HttpBaseTest.php @@ -229,7 +229,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; }