Skip to content

Commit 02be806

Browse files
committed
fix: runtime header value
1 parent 74d87c5 commit 02be806

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

src/main/java/com/sumup/sdk/core/SdkMetadata.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public final class SdkMetadata {
2525
"X-Sumup-Package-Version", VERSION,
2626
"X-Sumup-OS", System.getProperty("os.name", "unknown"),
2727
"X-Sumup-Arch", runtimeArch(),
28-
"X-Sumup-Runtime", runtimeIdentifier(),
28+
"X-Sumup-Runtime", LANGUAGE,
2929
"X-Sumup-Runtime-Version", Runtime.version().toString());
3030

3131
private SdkMetadata() {}
@@ -61,10 +61,6 @@ static String runtimeArch() {
6161
};
6262
}
6363

64-
private static String runtimeIdentifier() {
65-
return LANGUAGE + Runtime.version();
66-
}
67-
6864
private static String loadResource(String path) {
6965
try (InputStream stream = SdkMetadata.class.getResourceAsStream(path)) {
7066
if (stream == null) {

0 commit comments

Comments
 (0)