internal 1.0.111__py3-none-any.whl → 1.0.112__py3-none-any.whl

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.

Potentially problematic release.


This version of internal might be problematic. Click here for more details.

internal/http/requests.py CHANGED
@@ -23,14 +23,19 @@ async def async_request(app: FastAPI, method, url, current_user: dict = None,
23
23
  timeout = httpx.Timeout(connect=request_conn_timeout, read=response_read_timeout,
24
24
  write=request_write_timeout, pool=request_conn_pool_timeout)
25
25
 
26
+ if "headers" in kwargs.keys():
27
+ kwargs.get("headers")["X-Request-ID"] = correlation_id.get() or ""
28
+ else:
29
+ kwargs["headers"] = {
30
+ "X-Request-ID": correlation_id.get() or ""
31
+ }
32
+
26
33
  if current_user and "access_token" in current_user:
27
34
  if "headers" in kwargs.keys():
28
35
  kwargs.get("headers")["Authorization"] = f"Bearer {current_user.get('access_token')}"
29
- kwargs.get("headers")["X-Request-ID"] = correlation_id.get() or ""
30
36
  else:
31
37
  kwargs["headers"] = {
32
- "Authorization": f"Bearer {current_user.get('access_token')}",
33
- "X-Request-ID": correlation_id.get() or ""
38
+ "Authorization": f"Bearer {current_user.get('access_token')}"
34
39
  }
35
40
 
36
41
  try:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: internal
3
- Version: 1.0.111
3
+ Version: 1.0.112
4
4
  Summary:
5
5
  Author: Ray
6
6
  Author-email: ray@cruisys.com
@@ -21,7 +21,7 @@ internal/ext/amazon/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSu
21
21
  internal/ext/amazon/aws/__init__.py,sha256=2YFjb-rHG1JaZGZiZffYDesgTAJjDshOqQbswOYzhP8,834
22
22
  internal/ext/amazon/aws/const.py,sha256=l4WMg5bKWujwOKABBkCO2zclNg3abnYOfbhD7DG8GsA,109
23
23
  internal/http/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
24
- internal/http/requests.py,sha256=3FYHpM2I7qbmsM2mxjM65ur5v922fVx3CNQjf-uLzlk,2968
24
+ internal/http/requests.py,sha256=Yh0jro4fXWZjwso8EKiJ3XwLtBwg9hFuOEnJs7IC5FI,3045
25
25
  internal/http/responses.py,sha256=zvU0iRQ9-qxeEZfKmuvTi8lv9DFcaNAsHlQKOTCpVzw,2945
26
26
  internal/interface/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
27
27
  internal/interface/base_interface.py,sha256=3YaVjIgLi_pZpLk5SEIk8WVkuICM8qPavT8rB0MdB5U,1536
@@ -32,6 +32,6 @@ internal/model/base_model.py,sha256=NWjysNOp2MfXvAHGFqaQA_l8ZfTFvJbXQPUPuOXN_2g,
32
32
  internal/model/operate.py,sha256=QSM6yXYXpJMwrqkUGEWZLrEBaUgqHwVHY_Fi4S42hKc,3190
33
33
  internal/utils.py,sha256=i6YZdiXsiWnOjRdlJ6afNCGpyMe3Uo9mhm3xlQBy3Ls,2824
34
34
  internal/validator_utils.py,sha256=5ZLcNIgw1hvkYOj1f6gS9AYxe7Y3ufW9FyDxUS7FsMQ,1226
35
- internal-1.0.111.dist-info/METADATA,sha256=fEqxdHGPe4kWdiz8aO3IDYbNS_INHkaS4Hypbde2G60,809
36
- internal-1.0.111.dist-info/WHEEL,sha256=RaoafKOydTQ7I_I3JTrPCg6kUmTgtm4BornzOqyEfJ8,88
37
- internal-1.0.111.dist-info/RECORD,,
35
+ internal-1.0.112.dist-info/METADATA,sha256=rt8WMjjHpAnkxwQtqfXuBwCPulIw3noOZ3UzbuCDrNQ,809
36
+ internal-1.0.112.dist-info/WHEEL,sha256=RaoafKOydTQ7I_I3JTrPCg6kUmTgtm4BornzOqyEfJ8,88
37
+ internal-1.0.112.dist-info/RECORD,,