Skip to content

Commit

Permalink
Fix redirect handling regression
Browse files Browse the repository at this point in the history
  • Loading branch information
Gallaecio committed Mar 1, 2022
1 parent 84853c4 commit d60636d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions scrapy/downloadermiddlewares/redirect.py
Expand Up @@ -12,11 +12,10 @@
logger = logging.getLogger(__name__)


def _build_redirect_request(source_request, *, url, method=None, body=None):
def _build_redirect_request(source_request, *, url, **kwargs):
redirect_request = source_request.replace(
url=url,
method=method,
body=body,
**kwargs,
cookies=None,
)
if 'Cookie' in redirect_request.headers:
Expand Down

0 comments on commit d60636d

Please sign in to comment.