diff options
author | Micah Lee <micah@micahflee.com> | 2021-09-26 11:43:09 -0700 |
---|---|---|
committer | Micah Lee <micah@micahflee.com> | 2021-09-26 11:43:09 -0700 |
commit | d08d5f0f32f755f504494d80794886f346fbafdb (patch) | |
tree | 0e834bfe5946dd068d3c1803c7a22a991c377a33 /cli/onionshare_cli/web/chat_mode.py | |
parent | b66e742bc20ae977232fc53f22d485c10173ac2f (diff) | |
parent | 5de48bba6e3c17b0b45516fe536a3c500fab4fc4 (diff) | |
download | onionshare-507b54834ccd90c8ba8f999c3af32dd967fd964b.tar.gz onionshare-507b54834ccd90c8ba8f999c3af32dd967fd964b.zip |
Merge branch 'develop' into stablev2.4
Diffstat (limited to 'cli/onionshare_cli/web/chat_mode.py')
-rw-r--r-- | cli/onionshare_cli/web/chat_mode.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/cli/onionshare_cli/web/chat_mode.py b/cli/onionshare_cli/web/chat_mode.py index f6dc2d1a..e92ce385 100644 --- a/cli/onionshare_cli/web/chat_mode.py +++ b/cli/onionshare_cli/web/chat_mode.py @@ -68,15 +68,12 @@ class ChatModeWeb: ) self.web.add_request(self.web.REQUEST_LOAD, request.path) - r = make_response( - render_template( + return render_template( "chat.html", static_url_path=self.web.static_url_path, username=session.get("name"), title=self.web.settings.get("general", "title"), - ) ) - return self.web.add_security_headers(r) @self.web.app.route("/update-session-username", methods=["POST"], provide_automatic_options=False) def update_session_username(): @@ -112,7 +109,7 @@ class ChatModeWeb: success=False, ) ) - return self.web.add_security_headers(r) + return r @self.web.socketio.on("joined", namespace="/chat") def joined(message): |