internal 1.0.126__py3-none-any.whl → 1.0.127__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.
|
@@ -20,10 +20,12 @@ class LogRequestMiddleware(BaseHTTPMiddleware):
|
|
|
20
20
|
headers = request.headers
|
|
21
21
|
request_id = headers.get(CORRELATION_ID_HEADER_KEY_NAME, "")
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
query_params = request.query_params
|
|
24
|
+
temp = defaultdict(list)
|
|
25
|
+
for key, value in query_params.multi_items():
|
|
26
|
+
temp[key].append(value)
|
|
27
|
+
# 如果只有一個值就轉成單一值
|
|
28
|
+
params = {k: v[0] if len(v) == 1 else v for k, v in temp.items()}
|
|
27
29
|
|
|
28
30
|
body = await request.body()
|
|
29
31
|
self.logger.info(
|
|
@@ -28,12 +28,12 @@ internal/http/responses.py,sha256=zvU0iRQ9-qxeEZfKmuvTi8lv9DFcaNAsHlQKOTCpVzw,29
|
|
|
28
28
|
internal/interface/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
29
29
|
internal/interface/base_interface.py,sha256=3YaVjIgLi_pZpLk5SEIk8WVkuICM8qPavT8rB0MdB5U,1536
|
|
30
30
|
internal/middleware/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
31
|
-
internal/middleware/log_request.py,sha256=
|
|
31
|
+
internal/middleware/log_request.py,sha256=ltJGI4bN3fXEoAUocyeiqPQe2praZjL9Y6nBdGVbvHA,1549
|
|
32
32
|
internal/model/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
33
33
|
internal/model/base_model.py,sha256=NWjysNOp2MfXvAHGFqaQA_l8ZfTFvJbXQPUPuOXN_2g,5361
|
|
34
34
|
internal/model/operate.py,sha256=QSM6yXYXpJMwrqkUGEWZLrEBaUgqHwVHY_Fi4S42hKc,3190
|
|
35
35
|
internal/utils.py,sha256=i6YZdiXsiWnOjRdlJ6afNCGpyMe3Uo9mhm3xlQBy3Ls,2824
|
|
36
36
|
internal/validator_utils.py,sha256=5ZLcNIgw1hvkYOj1f6gS9AYxe7Y3ufW9FyDxUS7FsMQ,1226
|
|
37
|
-
internal-1.0.
|
|
38
|
-
internal-1.0.
|
|
39
|
-
internal-1.0.
|
|
37
|
+
internal-1.0.127.dist-info/METADATA,sha256=yUniTCqIZwoCzUVf7564BFtGpY7nt8Fla6tcgIn1gUE,809
|
|
38
|
+
internal-1.0.127.dist-info/WHEEL,sha256=RaoafKOydTQ7I_I3JTrPCg6kUmTgtm4BornzOqyEfJ8,88
|
|
39
|
+
internal-1.0.127.dist-info/RECORD,,
|
|
File without changes
|