Skip to content

Commit

Permalink
fix: Correct media type for dereference result
Browse files Browse the repository at this point in the history
  • Loading branch information
peacekeeper committed Jan 22, 2025
1 parent 0b780de commit 42a0141
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ public DereferenceResult dereference(DIDURL didUrl, Map<String, Object> derefere
String accept = (String) dereferenceOptions.get("accept");
if (accept == null) throw new ResolutionException("No 'accept' provided in 'dereferenceOptions' for dereference().");

List<String> acceptMediaTypes = Arrays.asList(ResolveResult.MEDIA_TYPE, accept);
List<String> acceptMediaTypes = Arrays.asList(DereferenceResult.MEDIA_TYPE, accept);
String acceptMediaTypesString = String.join(",", acceptMediaTypes);

if (log.isDebugEnabled()) log.debug("Setting Accept: header to " + acceptMediaTypesString);
Expand Down

0 comments on commit 42a0141

Please sign in to comment.