Shallow copy of Request fields in Request.copy()
Before adoption: this commit came in with the history the project adopted, so no landing records it.
This prevents e.g. modifying the headers of a copied request from affecting the headers of its source and vice versa. Copying is used with the intent to mutuate, so allowing this kind of mutation of fields makes sense. Is a deep copy better?
authored by Robert Estelle · committed by Robert Estelle · parent 9edba83 · Browse files · 1 file+12 added−6 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
1 file+12 added−6 removed
- other:+12 added−6 removed