Explorar el Código

Flask: bypass when response is already a flask.Response

Bastien Sevajol hace 6 años
padre
commit
aff55596f6
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      hapic/ext/flask/context.py

+ 1 - 1
hapic/ext/flask/context.py Ver fichero

@@ -106,4 +106,4 @@ class FlaskContext(ContextInterface):
106 106
         return FLASK_RE_PATH_URL.sub(r'{\1}', contextualised_rule)
107 107
 
108 108
     def by_pass_output_wrapping(self, response: typing.Any) -> bool:
109
-        return False
109
+        return isinstance(response, Response)