feat(Fetcher): Add the redirections history to Fetcher

Feature requested in #32
This commit is contained in:
Karim shoair
2025-02-22 16:58:54 +02:00
parent f0db07a31f
commit 3d2418b67a
3 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -132,7 +132,7 @@ class Adaptor(SelectorsGeneration):
self.__tag = None
# No need to check if all response attributes exist or not because if `status` exist, then the rest exist (Save some CPU cycles for speed)
self.__response_data = {
key: getattr(self, key) for key in ('status', 'reason', 'cookies', 'headers', 'request_headers',)
key: getattr(self, key) for key in ('status', 'reason', 'cookies', 'history', 'headers', 'request_headers',)
} if hasattr(self, 'status') else {}
# Node functionalities, I wanted to move to separate Mixin class but it had slight impact on performance