diff --git a/api/app_factory.py b/api/app_factory.py index e5e5eed054..92665c62d9 100644 --- a/api/app_factory.py +++ b/api/app_factory.py @@ -31,8 +31,10 @@ def create_flask_app_with_configs() -> DifyApp: request_id = get_request_id() try: - if request.method.lower() == "post" and "application/json" in request.headers.get("content-type", - "").lower(): + if ( + request.method.lower() == "post" + and "application/json" in request.headers.get("content-type", "").lower() + ): logging.info( f"[before request]|request_id: {request_id}," f" method: {request.method}, url: {request.url}, request_data: {request.get_json()}"