File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
gateway-ha/src/main/java/io/trino/gateway/ha/router Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -243,11 +243,10 @@ else if (statement instanceof ExecuteImmediate executeImmediate) {
243243
244244 private void processRequestBody (ContainerRequestContext requestContext )
245245 {
246- InputStream entityStream = requestContext .getEntityStream ();
247- if (entityStream == null ||
248- !requestContext .hasEntity () || requestContext .getMediaType () == null ||
249- !requestContext .getMediaType ().getParameters ().containsKey ("charset" ) ||
250- !StandardCharsets .UTF_8 .name ().equalsIgnoreCase (requestContext .getMediaType ().getParameters ().get ("charset" ))) {
246+ if (!shouldProcessBody (requestContext )) {
247+ return ;
248+ }
249+
251250 return ;
252251 }
253252 InputStreamReader entityReader = new InputStreamReader (entityStream , StandardCharsets .UTF_8 );
You can’t perform that action at this time.
0 commit comments