Skip to content

Commit

Permalink
correct node_proxy.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
johrstrom authored Oct 1, 2024
1 parent 2ddb42b commit ca2ae4c
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions mod_ood_proxy/lib/node_proxy.lua
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +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
if uri == nil or uri == '' then
--uri = '/'
-- uri = "/" .. r.uri:match("^/[^/]+/[^/]+/[^/]+/(.+)$")
uri = r.uri
end
conn.uri = 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 ca2ae4c

Please sign in to comment.