Skip to content

Commit

Permalink
fix: catch org.eclipse.jetty.http.BadMessageException: in (#3330)
Browse files Browse the repository at this point in the history
CorsFilter #3329
  • Loading branch information
yurem committed Dec 16, 2022
1 parent 3225455 commit 1e0ff76
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,10 @@
import java.io.IOException;
import java.net.URLDecoder;
import java.nio.charset.StandardCharsets;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.List;

/**
Expand Down Expand Up @@ -104,7 +106,7 @@ public void init(final FilterConfig filterConfig) throws ServletException {
@Override
public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain)
throws IOException, ServletException {
Collection<String> globalAllowedOrigins = null;
Collection<String> globalAllowedOrigins = new ArrayList<>(0);
if (this.filterEnabled) {
try {
globalAllowedOrigins = doFilterImpl(servletRequest);
Expand Down

0 comments on commit 1e0ff76

Please sign in to comment.