aio-libs / aio-libs/aiohttp

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

Offen
#3,231 5 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
enhancement
Vorherrschende Sprache
Python
Sterne
16.5k
Forks
2.4k
Ø Merge
20 Std. 10 Min.
Gemergte PRs (30 T.)
221

Beschreibung

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?

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.