Skip to content

Commit 5dbbd84

Browse files
committed
fix(requests): return the cached fingerprint on second call
1 parent d90189e commit 5dbbd84

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scrapling/spiders/request.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ def update_fingerprint(
7171
7272
Caches the result in self._fp after first computation.
7373
"""
74+
if self._fp is not None:
75+
return self._fp
7476

7577
post_data = self._session_kwargs.get("data", {})
7678
body = b""

0 commit comments

Comments
 (0)