Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

middleware: Assert request.method is not None.

Zixuan James Li2095258aa520
diff --git a/zerver/middleware.py b/zerver/middleware.py
index a3bf6d7886e..d5b24857ee3 100644
--- a/zerver/middleware.py
+++ b/zerver/middleware.py
@@ -434,6 +434,7 @@ class LogRequests(MiddlewareMixin):
content_iter = None
assert request_notes.client_name is not None and request_notes.log_data is not None
+ assert request.method is not None
write_log_line(
request_notes.log_data,
request.path,