From 47b1cb82b8cac83d59a07475050a94805760f91b Mon Sep 17 00:00:00 2001 From: Benoit Chesneau Date: Sun, 25 Jan 2026 14:51:40 +0100 Subject: [PATCH] Fix missing _expected_100_continue attribute in UWSGIRequest The wsgi.create() function expects req._expected_100_continue but UWSGIRequest didn't have this attribute, causing an AttributeError. Set to False since uWSGI runs behind a frontend server that handles 100-continue negotiation. --- gunicorn/uwsgi/message.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gunicorn/uwsgi/message.py b/gunicorn/uwsgi/message.py index db69b5e2..3a5aca18 100644 --- a/gunicorn/uwsgi/message.py +++ b/gunicorn/uwsgi/message.py @@ -58,6 +58,9 @@ class UWSGIRequest: # Proxy protocol compatibility self.proxy_protocol_info = None + # 100-continue: not applicable for uWSGI as the frontend handles this + self._expected_100_continue = False + # Check if the source IP is allowed self._check_allowed_ip()