Skip to content

Commit

Permalink
[FIX] fastapi_backport: Respect _dispatchers inheritance
Browse files Browse the repository at this point in the history
This should fix some extendable models and fastapi_encrypted_errors
  • Loading branch information
paradoxxxzero committed Nov 7, 2024
1 parent b0d261d commit 02b36c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fastapi_backport/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class FastapiRequest(http.WebRequest):
def __init__(self, *args):
super().__init__(*args)
self.params = {}
self._dispatcher = FastApiDispatcher(self)
self._dispatcher = http._dispatchers.get("fastapi", FastApiDispatcher)(self)

def make_response(self, data, headers=None, cookies=None, status=200):
"""Helper for non-HTML responses, or HTML responses with custom
Expand Down

0 comments on commit 02b36c1

Please sign in to comment.