Skip to content

Commit

Permalink
Always set response format and mime type for Unpoly
Browse files Browse the repository at this point in the history
  • Loading branch information
rainboyan committed May 7, 2024
1 parent d5e27e3 commit d12cba4
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ protected void doFilterInternal(HttpServletRequest request, HttpServletResponse

@Override
protected boolean shouldNotFilter(HttpServletRequest request) {
return !(MimeType.ALL.getName().equals(request.getHeader(HttpHeaders.ACCEPT))
&& HttpServletRequestExtension.isUnpoly(request));
return !HttpServletRequestExtension.isUnpoly(request);
}

}

0 comments on commit d12cba4

Please sign in to comment.