Skip to content

Commit

Permalink
document deprecated dont_filter flag in OffsiteMiddleware
Browse files Browse the repository at this point in the history
  • Loading branch information
BurnzZ committed Nov 28, 2023
1 parent e179e44 commit ec75a07
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/topics/spider-middleware.rst
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,11 @@ OffsiteMiddleware
offsite middleware will allow the request even if its domain is not listed
in allowed domains.

.. caution:: Setting :attr:`~scrapy.Request.dont_filter` to ``True`` also
causes the offsite middleware to allow the request. However,
this is deprecated. Use ``allow_offsite`` instead in
:attr:`Request.meta`.


RefererMiddleware
-----------------
Expand Down

0 comments on commit ec75a07

Please sign in to comment.