Skip to content

Commit

Permalink
reset node_proxy.lua back to original
Browse files Browse the repository at this point in the history
  • Loading branch information
johrstrom committed Oct 3, 2024
1 parent b88d45f commit 5251ac8
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 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

Expand Down

0 comments on commit 5251ac8

Please sign in to comment.