From d12cba444932e523f38f1c03b9b490f07154c536 Mon Sep 17 00:00:00 2001 From: Michael Yan Date: Tue, 7 May 2024 09:24:32 +0800 Subject: [PATCH] Always set response format and mime type for Unpoly --- .../org/graceframework/plugins/unpoly/UnpolyRequestFilter.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/groovy/org/graceframework/plugins/unpoly/UnpolyRequestFilter.java b/src/main/groovy/org/graceframework/plugins/unpoly/UnpolyRequestFilter.java index 77027c3..16d6240 100644 --- a/src/main/groovy/org/graceframework/plugins/unpoly/UnpolyRequestFilter.java +++ b/src/main/groovy/org/graceframework/plugins/unpoly/UnpolyRequestFilter.java @@ -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); } }