aio-libs / aio-libs/aiohttp

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

Open
#3,231 5 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
16.5k
Forks
2.4k
Avg merge
20h 10m
Merged PRs (30d)
221

Description

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?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.