Skip to content

Commit

Permalink
Merge pull request #21 from pamelafox/code-cleanup
Browse files Browse the repository at this point in the history
Remove unused var, unneeded mime-type
  • Loading branch information
pamelafox committed Aug 14, 2023
2 parents ae10d9d + 04572e6 commit d14737a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/flaskapp/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -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())
1 change: 0 additions & 1 deletion src/flaskapp/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@
<script src="https://cdn.jsdelivr.net/npm/showdown@2.1.0/dist/showdown.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/ndjson-readablestream@1.0.1/dist/ndjson-readablestream.umd.js"></script>
<script>
let eventSource;
const form = document.getElementById("chat-form");
const messageInput = document.getElementById("message");
const targetContainer = document.getElementById("messages");
Expand Down

0 comments on commit d14737a

Please sign in to comment.