aio-libs / aio-libs/aiohttp

Feature request: in the server, modifying the response headers after they have been sent should raise

Đang mở
#3,231 5 bình luận 0 reaction 0 người được giao Xem trên GitHub
enhancement
Ngôn ngữ chính
Python
Star
16.5k
Fork
2.4k
Merge trung bình
20 giờ 10 phút
Pull request đã merge (30 ngày)
221

Mô tả

Simple feature: I think after the response has been prepared (ie after the headers are sent back to the client), the `Response.headers` object should become a read-only dict (ie a `CIMultiDictProxy`), so that it cannot be modified.

Would you accept a patch doing this?

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.