Commit fc017d9
fix: Prevent mutation of default URL patterns list in
When `url_patterns` was `None`, the code assigned it to the module-level `_DEFAULT_BLOCK_REQUEST_URL_PATTERNS` constant and then called `extend()` on it, permanently mutating the shared default list. This caused `extra_url_patterns` to accumulate across all subsequent calls that used the default patterns.
Fixed by creating a copy of the list before extending it.block_requests (apify#1702)1 parent db4f4ec commit fc017d9
1 file changed
+1
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
92 | | - | |
| 91 | + | |
93 | 92 | | |
94 | 93 | | |
95 | 94 | | |
| |||
0 commit comments