From 39bd54afed06138c32dd6b8b511714c0fed18879 Mon Sep 17 00:00:00 2001 From: Giulio Librando <76574961+giuliolibrando@users.noreply.github.com> Date: Thu, 3 Oct 2024 16:07:13 +0200 Subject: [PATCH] Update node_proxy.lua - Fix for interactive apps not working (#3791) Fix node_proxy.lua for more issues related to #3730. Specifically #3825 where URIs with query parameters are not being passed correctly. --------- Co-authored-by: Jeff Ohrstrom --- mod_ood_proxy/lib/node_proxy.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mod_ood_proxy/lib/node_proxy.lua b/mod_ood_proxy/lib/node_proxy.lua index 705d6f86d9..02ec1806f8 100644 --- a/mod_ood_proxy/lib/node_proxy.lua +++ b/mod_ood_proxy/lib/node_proxy.lua @@ -34,11 +34,11 @@ function node_proxy_handler(r) local conn = {} conn.user = user conn.server = host .. ":" .. port - conn.uri = uri and (r.args and (uri .. "?" .. r.args) or uri) or r.uri + conn.uri = uri or r.uri or '/' -- last ditch effort to ensure that the uri is at least something -- because the request-line of an HTTP request _has_ to have something for a URL - if conn.uri == nil or conn.uri == '' then + if conn.uri == '' then conn.uri = '/' end