mongkok / fastapi-debug-toolbar

A debug toolbar for FastAPI.
https://fastapi-debug-toolbar.domake.io
BSD 3-Clause "New" or "Revised" License
134 stars 14 forks source link

Update middleware.py #31

Closed fsecada01 closed 1 year ago

fsecada01 commented 1 year ago

Changing named arg from name to _Router__name in light of changes with starlette.routing at line 640.

fsecada01 commented 1 year ago

@mongkok , please approve the pull request so that this works with fastapi v.0.95.0. If you're worried about breaks, this fix can be modified to provide the new _Router__name kwargs as a positional arg.

michael555444 commented 1 year ago

+

integrajerome commented 1 year ago

+

renine94 commented 1 year ago

i encountered same issue. :)

mongkok commented 1 year ago

I'm sorry for the delay in my response. The issue is fixed and a new release was created.