Skip to content

Commit

Permalink
Merge pull request #3852 from OSC/bp-last-httpd-fix
Browse files Browse the repository at this point in the history
backport #3791 to release 3.1
  • Loading branch information
johrstrom authored Oct 7, 2024
2 parents cf34455 + 39bd54a commit ba0e39c
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 ba0e39c

Please sign in to comment.