Skip to content

Commit f8858d4

Browse files
committed
fix: safeguard against error in splitting string; Fixes #34
1 parent e28d312 commit f8858d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

technology_specific_extractors/apache_httpd/aph_entry.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def add_connections(microservices: dict, information_flows: dict, file, microser
149149
if "ProxyPass " in line:
150150
parts = line.split(" ")
151151
for part in parts:
152-
if "http" in part:
152+
if "http" in part and "://" in part:
153153
target_service = False
154154
host = part.split("://")[1].split(":")[0]
155155
if host == "localhost":

0 commit comments

Comments
 (0)