Skip to content

Commit 9f410d8

Browse files
fix transport type
1 parent 41baaae commit 9f410d8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/mini-runtime/src/main/java/com/akto/hybrid_runtime/McpToolsSyncJobExecutor.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -375,14 +375,14 @@ private String detectAndSetTransportType(OriginalHttpRequest request, ApiCollect
375375
} catch (Exception sseException) {
376376
logger.info("SSE transport failed, falling back to HTTP transport: {}", sseException.getMessage());
377377
// Fall back to HTTP - no need to test, just store it
378-
dataActor.updateTransportType(apiCollection.getId(), TRANSPORT_SSE);
378+
dataActor.updateTransportType(apiCollection.getId(), TRANSPORT_HTTP);
379379
return TRANSPORT_HTTP;
380380
}
381381
}
382382

383383
// Default to HTTP if no sseCallbackUrl
384384
logger.info("No SSE callback URL found, using HTTP transport for: {}", apiCollection.getHostName());
385-
dataActor.updateTransportType(apiCollection.getId(), TRANSPORT_SSE);
385+
dataActor.updateTransportType(apiCollection.getId(), TRANSPORT_HTTP);
386386
return TRANSPORT_HTTP;
387387
}
388388
private String sendRequest(OriginalHttpRequest request, ApiCollection apiCollection) throws Exception {

0 commit comments

Comments
 (0)