Skip to content

Commit dfe7bda

Browse files
authored
Merge pull request #153 from RevEngAI/fix-plugin-header
fix: send custom header with API SDK requests
2 parents 2041a4e + 175b937 commit dfe7bda

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/ai/reveng/toolkit/ghidra/core/services/api/TypedApiImplementation.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ public TypedApiImplementation(String baseUrl, String apiKey) {
8585
var userAgent = "%s/%s-%s (%s) RevEng.AI_Plugin/%s".formatted(Application.getName(), Application.getApplicationVersion(), Platform.CURRENT_PLATFORM, Application.getApplicationReleaseName(), pluginVersion);
8686

8787
apiClient.setUserAgent(userAgent);
88+
apiClient.addDefaultHeader("X-RevEng-Application", userAgent);
8889

8990
// Use a custom HTTP client to add Ghidra specific logging
9091
// Set withResponseBody to true if debugging issues with the API to see the full response body

0 commit comments

Comments
 (0)