1
0
mirror of https://github.com/scrapy/scrapy.git synced 2025-02-24 00:23:52 +00:00
Paul Tremberth db40852892 Do not interpret non-ASCII bytes in "Location" and percent-encode them (#2322)
* Do not interpret non-ASCII bytes in "Location" and percent-encode them

Fixes GH-2321

The idea is to not guess the encoding of "Location" header value
and simply percent-encode non-ASCII bytes,
which should then be re-interpreted correctly by the remote website
in whatever encoding was used originally.

See https://tools.ietf.org/html/rfc3987#section-3.2

This is similar to the changes to safe_url_string in
https://github.com/scrapy/w3lib/pull/45

* Remove unused import
2016-10-19 23:26:12 -03:00
..
2014-07-30 19:45:08 -03:00
2014-07-30 19:45:08 -03:00
2014-07-30 19:45:08 -03:00
2016-01-27 01:28:11 +05:00
2015-07-29 13:51:01 +00:00
2014-07-30 19:45:08 -03:00
2016-01-13 12:32:28 +01:00
2015-07-25 18:04:55 +02:00