Skip to content

Commit

Permalink
fix: More relaxed detection of resolution result in HTTP body.
Browse files Browse the repository at this point in the history
  • Loading branch information
peacekeeper committed Jul 22, 2021
1 parent ec0f560 commit 91cfde6
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,6 @@ public static boolean isResolveResultContentType(ContentType contentType) {
public static boolean isResolveResultContent(String contentString) throws IOException {
try {
Map<String, Object> json = objectMapper.readValue(contentString, Map.class);
if (! json.containsKey("didResolutionMetadata")) return false;
if (! json.containsKey("didDocumentMetadata")) return false;
if (! json.containsKey("didDocument")) return false;
} catch (JsonProcessingException ex) {
return false;
Expand Down

0 comments on commit 91cfde6

Please sign in to comment.