We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 275ce52 commit 49c8be4Copy full SHA for 49c8be4
src/main/java/com/amazonaws/encryptionsdk/internal/VersionInfo.java
@@ -26,7 +26,8 @@ public class VersionInfo {
26
public static String loadUserAgent() {
27
try {
28
final Properties properties = new Properties();
29
- properties.load(ClassLoader.getSystemResourceAsStream("project.properties"));
+ final ClassLoader loader = VersionInfo.class.getClassLoader();
30
+ properties.load(loader.getResourceAsStream("project.properties"));
31
return USER_AGENT_PREFIX + properties.getProperty("version");
32
} catch (final IOException ex) {
33
return USER_AGENT_PREFIX + UNKNOWN_VERSION;
0 commit comments