Synchronizing HttpRequest.headers on HttpRequest.META mutation

Skip to first unread message

Chris Wesseling

Feb 26, 2024, 10:26:29 AMFeb 26
to Django developers (Contributions to Django itself)
I bumped into this old WONTFIX. And I agree with the decision not fix it in the way proposed by OP. But the current behaviour can be very confusing:

That  `del ` I propose would be free if nothing has accessed `headers` yet or nothing will be accessing `headers`. But would sync the contents, at the cost of an `if` in the `META` mutators.

Note even the quoted comment on the PR, suggest to mutate `META` directly.
Reply all
Reply to author
0 new messages