http-interop / http-middleware

PSR-15 interfaces for HTTP Middleware
MIT License
73 stars 7 forks source link

Remove recusive middleware stack argument #49

Closed schnittstabil closed 7 years ago

schnittstabil commented 7 years ago

The recursion argument is flawed, see https://github.com/http-interop/http-middleware/pull/41#issuecomment-263915893 and https://github.com/http-interop/http-middleware/pull/24#issuecomment-261727171

tl;tr Recursion itself is not bad, only endless loops are; furthermore some weird tricks are needed to achieve that – Nobody can protect stupid people to do stupid things.

shadowhand commented 7 years ago

Thanks!