Skip to content

Commit

Permalink
Change verification of cgilua presence
Browse files Browse the repository at this point in the history
  • Loading branch information
Etiene committed Feb 15, 2016
1 parent ef75596 commit 80b8f7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/remy.lua
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,9 @@ end
function remy.detect(native_request)
local mode = nil
if forced_mode then return forced_mode end
if cgilua ~= nil then
if package.loaded.cgilua ~= nil then
mode = remy.MODE_CGILUA
elseif ngx ~= nil then
elseif package.loaded.ngx ~= nil then
mode = remy.MODE_NGINX
elseif getEnv ~= nil then
local env = getEnv()
Expand Down

0 comments on commit 80b8f7f

Please sign in to comment.