From f555180191e77cfbd589c7c5377a68c59936b2f2 Mon Sep 17 00:00:00 2001 From: Benoit Chesneau Date: Tue, 24 Mar 2026 23:06:06 +0100 Subject: [PATCH] Add FileWrapper iterator fix to changelog --- docs/content/news.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/content/news.md b/docs/content/news.md index 51f37e0c..9e2720a1 100644 --- a/docs/content/news.md +++ b/docs/content/news.md @@ -11,6 +11,14 @@ - Falls back to Python parser in `auto` mode if version not met - Proper HTTP status codes for limit errors (414, 431) +### Bug Fixes + +- **FileWrapper Iterator Protocol**: Add `__iter__` and `__next__` methods to + `FileWrapper` for full PEP 3333 compliance. Previously only supported old-style + `__getitem__` iteration which broke code explicitly using `iter()` or `next()`. + ([#3396](https://github.com/benoitc/gunicorn/issues/3396), + [PR #3550](https://github.com/benoitc/gunicorn/pull/3550)) + ### Performance - **ASGI HTTP Parser Optimizations**: Improve ASGI worker HTTP parsing performance