Shallow copy of Request fields in Request.copy()
authorRobert Estelle <robert@btbapp.com>
Wed, 31 Jul 2013 05:59:51 +0000 (22:59 -0700)
committerRobert Estelle <robert@btbapp.com>
Wed, 31 Jul 2013 05:59:53 +0000 (22:59 -0700)
commitee90f0af608a58761e5f1e08ea5ea6a6365651a2
tree2d53e49773c5073efb62f5c61ee522f718b2c089
parent9edba838b3c7891c955b49d680c49b4ee8e64dd4
Shallow copy of Request fields in Request.copy()

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?
requests/models.py