nginx-lens 0.1.9__py3-none-any.whl → 0.2.0__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.
- analyzer/route.py +1 -1
- {nginx_lens-0.1.9.dist-info → nginx_lens-0.2.0.dist-info}/METADATA +1 -1
- {nginx_lens-0.1.9.dist-info → nginx_lens-0.2.0.dist-info}/RECORD +7 -7
- {nginx_lens-0.1.9.dist-info → nginx_lens-0.2.0.dist-info}/WHEEL +0 -0
- {nginx_lens-0.1.9.dist-info → nginx_lens-0.2.0.dist-info}/entry_points.txt +0 -0
- {nginx_lens-0.1.9.dist-info → nginx_lens-0.2.0.dist-info}/licenses/LICENSE +0 -0
- {nginx_lens-0.1.9.dist-info → nginx_lens-0.2.0.dist-info}/top_level.txt +0 -0
analyzer/route.py
CHANGED
|
@@ -33,7 +33,7 @@ def find_route(tree, url: str) -> Optional[Dict[str, Any]]:
|
|
|
33
33
|
if score > best_server_score:
|
|
34
34
|
best_server = d
|
|
35
35
|
best_server_score = score
|
|
36
|
-
if not best_server:
|
|
36
|
+
if not best_server or best_server_score < 2:
|
|
37
37
|
return None
|
|
38
38
|
# 2. Внутри server ищем лучший location (longest prefix match)
|
|
39
39
|
best_loc = None
|
|
@@ -7,7 +7,7 @@ analyzer/duplicates.py,sha256=jpy_6k-BzWxaXFt2Wb3rlulIXUEzbFe9xYRm7rWR50U,1215
|
|
|
7
7
|
analyzer/empty_blocks.py,sha256=7Zu4-5I5PS3bjhH0Ppq1CvM7rMTeRIc4fHx5n5vkMIw,517
|
|
8
8
|
analyzer/include.py,sha256=FhKR4VsogLknykjLD2N8jX9OtwxZcWik5oPpvp-_luE,2465
|
|
9
9
|
analyzer/rewrite.py,sha256=-jSLLG1jqmGU-dXWvU6NHCW6muB8Lfro6fXX1tDCHCQ,1834
|
|
10
|
-
analyzer/route.py,sha256=
|
|
10
|
+
analyzer/route.py,sha256=71dkmQaTrHqDTf4Up5gAsrgmgktNpXqWmxr7-0RAVtg,2370
|
|
11
11
|
analyzer/unused.py,sha256=Ixzv0bPsw9IafblVwLiAOgugdg2dGu1MJDtuoqzPZiY,1066
|
|
12
12
|
analyzer/warnings.py,sha256=zC36QMvegA2eQPvZ-P1eysrX_kXHx5A1MUKHKKNvG5c,5784
|
|
13
13
|
commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -25,13 +25,13 @@ exporter/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
25
25
|
exporter/graph.py,sha256=WYUrqUgCaK6KihgxAcRHaQn4oMo6b7ybC8yb_36ZIsA,3995
|
|
26
26
|
exporter/html.py,sha256=uquEM-WvBt2aV9GshgaI3UVhYd8sD0QQ-OmuNtvYUdU,798
|
|
27
27
|
exporter/markdown.py,sha256=_0mXQIhurGEZ0dO-eq9DbsuKNrgEDIblgtL3DAgYNo8,724
|
|
28
|
-
nginx_lens-0.
|
|
28
|
+
nginx_lens-0.2.0.dist-info/licenses/LICENSE,sha256=g8QXKdvZZC56rU8E12vIeYF6R4jeTWOsblOnYAda3K4,1073
|
|
29
29
|
parser/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
30
30
|
parser/nginx_parser.py,sha256=Sa9FtGAkvTqNzoehBvgLUWPJHLLIZYWH9ugSHW50X8s,3699
|
|
31
31
|
upstream_checker/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
32
32
|
upstream_checker/checker.py,sha256=9-6CMUTN7gXUACP8EwX722QogfujZyV-WWWUeM3a79k,455
|
|
33
|
-
nginx_lens-0.
|
|
34
|
-
nginx_lens-0.
|
|
35
|
-
nginx_lens-0.
|
|
36
|
-
nginx_lens-0.
|
|
37
|
-
nginx_lens-0.
|
|
33
|
+
nginx_lens-0.2.0.dist-info/METADATA,sha256=lLuwZ7f3S8BLDun8sm25Oq-9S8jNux_PPOnL_AIkcqg,520
|
|
34
|
+
nginx_lens-0.2.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
35
|
+
nginx_lens-0.2.0.dist-info/entry_points.txt,sha256=qEcecjSyLqcJjbIVlNlTpqAhPqDyaujUV5ZcBTAr3po,48
|
|
36
|
+
nginx_lens-0.2.0.dist-info/top_level.txt,sha256=mxLJO4rZg0rbixVGhplF3fUNFs8vxDIL25ronZNvRy4,51
|
|
37
|
+
nginx_lens-0.2.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|