From abb726f372a7a922719f60af0416342e30f9f90d Mon Sep 17 00:00:00 2001 From: Yann Le Moigne Date: Sat, 15 Jun 2024 05:16:44 +0200 Subject: [PATCH] Fix #682: Pass formatter on runtime module --- .../java/io/quarkiverse/quinoa/QuinoaDevProxyHandler.java | 7 ++++--- .../main/java/io/quarkiverse/quinoa/QuinoaRecorder.java | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/runtime/src/main/java/io/quarkiverse/quinoa/QuinoaDevProxyHandler.java b/runtime/src/main/java/io/quarkiverse/quinoa/QuinoaDevProxyHandler.java index af609dea..31065b1d 100644 --- a/runtime/src/main/java/io/quarkiverse/quinoa/QuinoaDevProxyHandler.java +++ b/runtime/src/main/java/io/quarkiverse/quinoa/QuinoaDevProxyHandler.java @@ -37,14 +37,15 @@ class QuinoaDevProxyHandler implements Handler { private final ClassLoader currentClassLoader; private final QuinoaDevProxyHandlerConfig config; - QuinoaDevProxyHandler(final QuinoaDevProxyHandlerConfig config, final Vertx vertx, boolean tls, boolean tlsAllowInsecure,String host, int port, + QuinoaDevProxyHandler(final QuinoaDevProxyHandlerConfig config, final Vertx vertx, boolean tls, boolean tlsAllowInsecure, + String host, int port, boolean websocket) { this.host = host; this.port = port; WebClientOptions options = new WebClientOptions(); - if(tls){ + if (tls) { options.setSsl(true); - if(tlsAllowInsecure){ + if (tlsAllowInsecure) { options.setTrustAll(true); options.setVerifyHost(false); } diff --git a/runtime/src/main/java/io/quarkiverse/quinoa/QuinoaRecorder.java b/runtime/src/main/java/io/quarkiverse/quinoa/QuinoaRecorder.java index 1ac4cc72..07cb3c9b 100644 --- a/runtime/src/main/java/io/quarkiverse/quinoa/QuinoaRecorder.java +++ b/runtime/src/main/java/io/quarkiverse/quinoa/QuinoaRecorder.java @@ -26,7 +26,7 @@ public class QuinoaRecorder { public static final Set HANDLED_METHODS = Set.of(HttpMethod.HEAD, HttpMethod.OPTIONS, HttpMethod.GET); public Handler quinoaProxyDevHandler(final QuinoaDevProxyHandlerConfig handlerConfig, Supplier vertx, - boolean tls, boolean tlsAllowInsecure, String host, int port, boolean websocket) { + boolean tls, boolean tlsAllowInsecure, String host, int port, boolean websocket) { if (LOG.isDebugEnabled()) { LOG.debugf("Quinoa dev proxy-handler is ignoring paths starting with: " + String.join(", ", handlerConfig.ignoredPathPrefixes));