Skip to content

Commit 507c98b

Browse files
committed
fix: Assume default representation type if none provided
1 parent 0530c01 commit 507c98b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

uni-resolver-core/src/main/java/uniresolver/UniResolver.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package uniresolver;
22

3+
import foundation.identity.did.representations.Representations;
34
import org.slf4j.Logger;
45
import org.slf4j.LoggerFactory;
56
import uniresolver.result.ResolveResult;
@@ -22,7 +23,7 @@ public interface UniResolver extends DIDResolver {
2223
@Override public ResolveResult resolve(String didString, Map<String, Object> resolutionOptions) throws ResolutionException;
2324

2425
default public ResolveResult resolve(String didString) throws ResolutionException {
25-
return this.resolve(didString, new HashMap<>());
26+
return this.resolve(didString, Map.of("accept", Representations.DEFAULT_MEDIA_TYPE));
2627
}
2728

2829
public Map<String, Map<String, Object>> properties() throws ResolutionException;

0 commit comments

Comments
 (0)