octoper / statamic-html-minify

5 stars 4 forks source link

Redirect Response error #2

Closed acurrieclark closed 4 years ago

acurrieclark commented 4 years ago

Description

If a redirect response is returned from a route, an exception is thrown:

Return value of Octoper\HtmlMinify\HtmlMinifyMiddleware::handle() must be an instance of Illuminate\Http\Response, instance of Illuminate\Http\RedirectResponse returned

Might a return type of Symfony\Component\HttpFoundation\Response work? I think that all Illuminate responses inherit from it.

octoper commented 4 years ago

Fixed with this pull request #3

acurrieclark commented 4 years ago

That's great. Thanks for the quick turnaround.