From 5251ac8ce6c423c7af8cbc62ee692a328c818fdb Mon Sep 17 00:00:00 2001 From: Jeff Ohrstrom Date: Thu, 3 Oct 2024 10:10:01 -0400 Subject: [PATCH] reset node_proxy.lua back to original --- 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 02ec1806f8..705d6f86d9 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 or r.uri or '/' + conn.uri = uri and (r.args and (uri .. "?" .. r.args) or uri) or r.uri -- 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 == '' then + if conn.uri == nil or conn.uri == '' then conn.uri = '/' end