Skip to content

HEAD request is throwing error #187

@moazam1

Description

@moazam1

I am getting following error whenever someone sends a HEAD request to our blog:

PHP WarningHEAD /oodle.xml
Invalid argument supplied for foreach()

/vendor/getherbert/framework/Herbert/Framework/Router.php:98Herbert\Framework\Router::boot
add_rewrite_tag('%herbert_route%', '(.+)');

foreach ($this->routes[$this->http->method()] as $id => $route)
{
    $this->addRoute($route, $id, $this->http->method());
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions