mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-03 09:29:11 +00:00
Add the ingest param to the context only if present
This commit is contained in:
parent
376c739fe6
commit
14e09ad20c
@ -34,7 +34,9 @@ public class IngestRestFilter extends RestFilter {
|
||||
|
||||
@Override
|
||||
public void process(RestRequest request, RestChannel channel, RestFilterChain filterChain) throws Exception {
|
||||
request.putInContext(INGEST_PARAM_CONTEXT_KEY, request.param(INGEST_PARAM));
|
||||
if (request.hasParam(INGEST_PARAM)) {
|
||||
request.putInContext(INGEST_PARAM_CONTEXT_KEY, request.param(INGEST_PARAM));
|
||||
}
|
||||
filterChain.continueProcessing(request, channel);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user