Skip to content

Commit ff97235

Browse files
committed
fix test
1 parent 08eaa9e commit ff97235

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

model/src/main/kotlin/org/digma/intellij/plugin/model/rest/insights/EndpointSchema.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,17 +48,17 @@ class EndpointSchema {
4848
@JvmStatic
4949
fun adjustHttpRouteIfNeeded(endpointInsight: EndpointInsight) {
5050
val origValue = endpointInsight.route
51-
if (origValue.startsWith(HTTP_SCHEMA)) {
51+
if (isOfType(origValue, HTTP_SCHEMA)) {
5252
return;
5353
}
54-
if (origValue.startsWith(RPC_SCHEMA)) {
54+
if (isOfType(origValue, RPC_SCHEMA)) {
5555
return;
5656
}
57-
if (origValue.startsWith(CONSUMER_SCHEMA)) {
57+
if (isOfType(origValue, CONSUMER_SCHEMA)) {
5858
return;
5959
}
6060
// default behaviour, to be backward compatible, where did not have the scheme part of the route, so adding it as HTTP one
61-
endpointInsight.route = HTTP_SCHEMA + origValue;
61+
endpointInsight.route = HTTP_SCHEMA +":"+ origValue;
6262
}
6363
}
6464
}

0 commit comments

Comments
 (0)