mirror of
https://github.com/LukeHagar/connexion.git
synced 2025-12-09 20:37:46 +00:00
Fix add_middleware enum comparison (#1698)
Fixes #1697 Because of a wrong comparison against the position `Enum`, middleware was not actually being added to the stack via `add_middleware`. This PR fixes this, adds a warning when the middleware position cannot be found, and adds a test.
This commit is contained in:
@@ -1,8 +1,3 @@
|
||||
import json
|
||||
|
||||
import flask
|
||||
|
||||
|
||||
def fix_data(data):
|
||||
return data.replace(b'\\"', b'"')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user