HTTPS clone URL
Subversion checkout URL
Please sign in to comment.
Fix middleware not running when app run as middleware [#161]
The app's middleware pipeline was ignored when the app itself was run as middleware. This was due to the separate call paths for middleware vs. endpoint apps. This change makes it so that both endpoint and middleware apps are invoked via the same instance level #call method. One potentially confusing aspect of this change is that Base.new now returns the head of the app's middleware pipeline. If no middleware is used by the app, this will be an instance of the Base class; however, if middleware is used, Base.new will return the head of the middleware chain leading to the Base instance.
- Loading branch information...
Showing with 53 additions and 40 deletions.