refactoring: use more specific var name
This commit is contained in:
parent
8f4d5f8b34
commit
eb112ea06c
2 changed files with 5 additions and 7 deletions
|
|
@ -56,13 +56,11 @@ local function get_pem_cert_uid(raw_hostname)
|
|||
end
|
||||
|
||||
function _M.configured_for_current_request()
|
||||
if ngx.ctx.configured_for_current_request ~= nil then
|
||||
return ngx.ctx.configured_for_current_request
|
||||
if ngx.ctx.cert_configured_for_current_request == nil then
|
||||
ngx.ctx.cert_configured_for_current_request = get_pem_cert_uid(ngx.var.host) ~= nil
|
||||
end
|
||||
|
||||
ngx.ctx.configured_for_current_request = get_pem_cert_uid(ngx.var.host) ~= nil
|
||||
|
||||
return ngx.ctx.configured_for_current_request
|
||||
return ngx.ctx.cert_configured_for_current_request
|
||||
end
|
||||
|
||||
function _M.call()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue