From e02608e06237e01b88c9df7f1a7324b92eb1bfa2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Zachar?= Date: Tue, 2 Jun 2026 10:15:51 +0200 Subject: [PATCH] mod-wsgi-test-app compatible with mod_wsgi 6.0.0 Keep it working with older mod_wsgi --- examples/mod-wsgi-test-app/app.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/examples/mod-wsgi-test-app/app.py b/examples/mod-wsgi-test-app/app.py index bbac2641..bce8b2dc 100644 --- a/examples/mod-wsgi-test-app/app.py +++ b/examples/mod-wsgi-test-app/app.py @@ -1,7 +1,10 @@ import os -import mod_wsgi.server +try: + import mod_wsgi.express.cli as server_wrapper +except ImportError: + import mod_wsgi.server as server_wrapper -mod_wsgi.server.start( +server_wrapper.start( '--log-to-terminal', '--port', '8080', '--trust-proxy-header', 'X-Forwarded-For',