eaf-base-api 2.4.2__tar.gz → 2.4.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: eaf_base_api
3
- Version: 2.4.2
3
+ Version: 2.4.3
4
4
  Summary: A base API for EchterAlsFake's Porn APIs
5
5
  Author-email: Johannes Habel <EchterAlsFake@proton.me>
6
6
  License: LGPLv3
@@ -477,6 +477,8 @@ class BaseCore:
477
477
  bypass_kill_switch: bool = False, # prevents infinite loop
478
478
  data: dict = None,
479
479
  method: str = "GET",
480
+ headers: dict = None,
481
+ json: dict = None,
480
482
  ) -> Union[bytes, str, httpx.Response, None]:
481
483
  """
482
484
  Fetches content in UTF-8 Text, Bytes, or as a stream using multiple request attempts,
@@ -504,8 +506,11 @@ class BaseCore:
504
506
  self.check_kill_switch()
505
507
 
506
508
  # Perform the request with stream handling
509
+ if headers is None:
510
+ headers = self.session.headers.copy()
511
+
507
512
  response = self.session.request(method=method, url=url, timeout=timeout, cookies=cookies,
508
- follow_redirects=allow_redirects, data=data)
513
+ follow_redirects=allow_redirects, data=data, headers=headers, json=json)
509
514
  self.total_requests += 1
510
515
 
511
516
  # NEW: bot/challenge detection
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: eaf_base_api
3
- Version: 2.4.2
3
+ Version: 2.4.3
4
4
  Summary: A base API for EchterAlsFake's Porn APIs
5
5
  Author-email: Johannes Habel <EchterAlsFake@proton.me>
6
6
  License: LGPLv3
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "eaf_base_api"
7
- version = "2.4.2"
7
+ version = "2.4.3"
8
8
  description = "A base API for EchterAlsFake's Porn APIs"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.6"
File without changes
File without changes
File without changes
File without changes