mirror of https://github.com/scrapy/scrapy.git
Remove Legacy Policy which is equivalent to UnsafeUrl Policy
This commit is contained in:
parent
c2c503192f
commit
db176f872b
|
|
@ -239,11 +239,6 @@ class UnsafeUrlPolicy(ReferrerPolicy):
|
|||
return self.stripped_referrer(response)
|
||||
|
||||
|
||||
class LegacyPolicy(ReferrerPolicy):
|
||||
def referrer(self, response, request):
|
||||
return response
|
||||
|
||||
|
||||
class DefaultReferrerPolicy(NoReferrerWhenDowngradePolicy):
|
||||
"""
|
||||
A variant of "no-referrer-when-downgrade",
|
||||
|
|
|
|||
Loading…
Reference in New Issue