Skip to content

Commit

Permalink
Update node_proxy.lua - Fix for interactive apps not working (#3791)
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
giuliolibrando and johrstrom committed Oct 7, 2024
1 parent 1ddec66 commit 39bd54a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mod_ood_proxy/lib/node_proxy.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 39bd54a

Please sign in to comment.