From 04572e66d30f38e854cf6092cbb83242cc6e0688 Mon Sep 17 00:00:00 2001 From: Pamela Fox Date: Mon, 14 Aug 2023 19:24:15 +0000 Subject: [PATCH] remove unused var, unneeded mime-type --- src/flaskapp/chat.py | 2 +- src/flaskapp/templates/index.html | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/flaskapp/chat.py b/src/flaskapp/chat.py index e8098f0..1a20c61 100644 --- a/src/flaskapp/chat.py +++ b/src/flaskapp/chat.py @@ -46,4 +46,4 @@ def response_stream(): current_app.logger.info(event) yield json.dumps(event).replace("\n", "\\n") + "\n" - return Response(response_stream(), mimetype="text/event-stream") + return Response(response_stream()) diff --git a/src/flaskapp/templates/index.html b/src/flaskapp/templates/index.html index 52864ff..3be1b29 100644 --- a/src/flaskapp/templates/index.html +++ b/src/flaskapp/templates/index.html @@ -67,7 +67,6 @@