diff --git a/src/main/java/ai/reveng/toolkit/ghidra/core/services/api/TypedApiImplementation.java b/src/main/java/ai/reveng/toolkit/ghidra/core/services/api/TypedApiImplementation.java index 716f6fa..660b812 100644 --- a/src/main/java/ai/reveng/toolkit/ghidra/core/services/api/TypedApiImplementation.java +++ b/src/main/java/ai/reveng/toolkit/ghidra/core/services/api/TypedApiImplementation.java @@ -85,6 +85,7 @@ public TypedApiImplementation(String baseUrl, String apiKey) { var userAgent = "%s/%s-%s (%s) RevEng.AI_Plugin/%s".formatted(Application.getName(), Application.getApplicationVersion(), Platform.CURRENT_PLATFORM, Application.getApplicationReleaseName(), pluginVersion); apiClient.setUserAgent(userAgent); + apiClient.addDefaultHeader("X-RevEng-Application", userAgent); // Use a custom HTTP client to add Ghidra specific logging // Set withResponseBody to true if debugging issues with the API to see the full response body