internal 1.0.110__py3-none-any.whl → 1.0.111__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
@@ -2,6 +2,7 @@ import httpx
2
2
 
3
3
  from fastapi import FastAPI
4
4
  from fastapi.encoders import jsonable_encoder
5
+ from asgi_correlation_id import correlation_id
5
6
 
6
7
  from ..exception.internal_exception import GatewayTimeoutException, BadGatewayException
7
8
 
@@ -25,9 +26,11 @@ async def async_request(app: FastAPI, method, url, current_user: dict = None,
25
26
  if current_user and "access_token" in current_user:
26
27
  if "headers" in kwargs.keys():
27
28
  kwargs.get("headers")["Authorization"] = f"Bearer {current_user.get('access_token')}"
29
+ kwargs.get("headers")["X-Request-ID"] = correlation_id.get() or ""
28
30
  else:
29
31
  kwargs["headers"] = {
30
- "Authorization": f"Bearer {current_user.get('access_token')}"
32
+ "Authorization": f"Bearer {current_user.get('access_token')}",
33
+ "X-Request-ID": correlation_id.get() or ""
31
34
  }
32
35
 
33
36
  try:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: internal
3
- Version: 1.0.110
3
+ Version: 1.0.111
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=jnclx5SPjCAfQ9b4bOSPLPCocMLL9Fr7_SXEsWmMnx4,2782
24
+ internal/http/requests.py,sha256=3FYHpM2I7qbmsM2mxjM65ur5v922fVx3CNQjf-uLzlk,2968
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.110.dist-info/METADATA,sha256=9_pLYGKiWAPPVod3v-pj7Mr1uE_8tYv9uNPYhafvh7E,809
36
- internal-1.0.110.dist-info/WHEEL,sha256=RaoafKOydTQ7I_I3JTrPCg6kUmTgtm4BornzOqyEfJ8,88
37
- internal-1.0.110.dist-info/RECORD,,
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,,