fix: use relative URL for self
This commit is contained in:
parent
713393d36d
commit
d1e40fa27f
1 changed files with 3 additions and 0 deletions
|
@ -75,6 +75,9 @@ end
|
|||
function _M.get_mirror(host)
|
||||
ngx.log(ngx.DEBUG, "Looking up mirror for " .. host)
|
||||
local host_lower = host:lower()
|
||||
if host_lower == ngx.ctx.jasima_host then
|
||||
return "//" .. host_lower .. "/" -- This will get made relative by sub_filter later
|
||||
end
|
||||
local mirror = ngx.ctx.jasima_pool_map[host_lower]
|
||||
return "//" .. (mirror or host) .. "/"
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue