Skip to content

Commit

Permalink
Allow missing Accept header
Browse files Browse the repository at this point in the history
  • Loading branch information
clehner committed Sep 21, 2020
1 parent 83025cc commit 0f6ae08
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ protected void doGet(HttpServletRequest request, HttpServletResponse response) t

// write resolve result

if (request.getHeader("Accept").contains(DIDDocument.MIME_TYPE) && resolveResult.getDidDocument() != null) {
String acceptHeader = request.getHeader("Accept");
if ((acceptHeader == null || acceptHeader.contains(DIDDocument.MIME_TYPE)) && resolveResult.getDidDocument() != null) {

WebUniResolver.sendResponse(response, HttpServletResponse.SC_OK, DIDDocument.MIME_TYPE, resolveResultString);
return;
Expand Down

0 comments on commit 0f6ae08

Please sign in to comment.