actix-governor
actix-governor copied to clipboard
Don't return error from middleware
Fixes https://github.com/AaronErhardt/actix-governor/issues/51
This patch allows ErrorHandlers to catch 5xx error responses generated by actix-governor
I don't quite understand how this is better/more correct. Also, this would make the Result of the Right variant obsolete because it's always Ok.
I don't know whether it is correct or not. Couldn't find any documentation on the subject, only a couple of bug reports in actix-web repo where people complain about similar problems.
But this patch solved #51 for me.