Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Optional;
import java.util.Set;
import java.util.concurrent.ExecutorService;
Expand All @@ -42,8 +44,7 @@ public class ScioSearchServletFilter implements Filter {
private static final int BASE_URL_MIN_PREFIX = "https://".length() + 1;

private static final Logger.Log logger = Logger.getInstance(ScioSearchServletFilter.class);
private static final Set<String> ALLOWED_REST_API_CONTENT_ACTIONS = Set.of("PUT", "POST",
"DELETE");
private static final Set<String> ALLOWED_REST_API_CONTENT_ACTIONS = new HashSet<>(Arrays.asList("PUT", "POST", "DELETE"));
private final ExecutorService executor =
new ThreadPoolExecutor(
NUM_BACKGROUND_THREADS,
Expand Down