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.pyindex a3bf6d7886e..d5b24857ee3 100644--- a/zerver/middleware.py+++ b/zerver/middleware.py@@ -434,6 +434,7 @@ class LogRequests(MiddlewareMixin):content_iter = Noneassert request_notes.client_name is not None and request_notes.log_data is not None+ assert request.method is not Nonewrite_log_line(request_notes.log_data,request.path,