The code who set appriate headeres was really hard to read when I was looking for a possible error. Instead of using temporary var, use only one dict. While i'm here: - rather than appending to a new header, only remove old values, it's faster. - fix redirection, use initial headers
The code who set appriate headeres was really hard to read when I was
looking for a possible error. Instead of using temporary var, use only
one dict. While i'm here:
- rather than appending to a new header, only
remove old values, it's faster.
- fix redirection, use initial headers

benoitc/restkit,openprocurement/restkit