sanic-session
sanic-session copied to clipboard
fix middleware registration for sanic 22.12.0+
https://github.com/ahopkins/sanic-session/issues/92
Thanks for contributing this. It helped me solve my problem.
Out of curiosity, why did you choose to do this rather than just uncommenting the @app.middleware("request")
and @app.middleware("response")
lines? I made that change on my end and it also seems to work. Any particular reason to use the explicit register_middleware
API?
Wow, I am super late at reviewing this. Sorry about that. We probably should update this to give it a high priority (if in the relevant Sanic version).
Any update?