Skip to content

Commit ff6acbf

Browse files
committed
1 parent 49a6307 commit ff6acbf

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/main/java/act/inject/util/ResourceLoader.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,9 @@ protected static Object _load(String resourcePath, BeanSpec spec) {
119119
return null;
120120
}
121121
Class<?> rawType = spec.rawType();
122-
if (String.class == rawType) {
122+
if (URL.class == rawType) {
123+
return url;
124+
} else if (String.class == rawType) {
123125
return IO.readContentAsString(url);
124126
} else if (byte[].class == rawType) {
125127
return readContent(url);

0 commit comments

Comments
 (0)