Skip to content

Commit

Permalink
fix: wekzeug encoders - prevent double call by checking state
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryu-CZ committed Oct 13, 2023
1 parent 2a2d59c commit 6c754fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/restx_monkey/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def patch_restx(
swagger_ui.replace_static_swagger_files()
_swagger_ui_is_replaced = True

if fix_werkzeug_url_coders and werkzeug_version > (2, 3, 0):
if fix_werkzeug_url_coders and werkzeug_version > (2, 3, 0) and not _werkzeug_coders_injected:
from . import werkzeug_routing

werkzeug_routing.add_werkzeug_urls_encode_decode()
Expand Down

0 comments on commit 6c754fe

Please sign in to comment.