Skip to content

Commit fabe18a

Browse files
committed
Update default.conf
1 parent 3960996 commit fabe18a

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

openid-connect-provider-debugger/default.conf

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,10 @@ server {
4141
local cjson = require('cjson')
4242
local opts = {}
4343
if (ngx.var.arg_code) then
44-
ngx.log(ngx.DEBUG, 'session=' .. ngx.var.cookie_session)
44+
if (ngx.var.cookie_session) then
45+
ngx.log(ngx.DEBUG, 'session=' .. ngx.var.cookie_session)
46+
else
47+
ngx.log(ngx.ERR, 'session cookie is missing')
4548
ngx.log(ngx.DEBUG, 'opening session')
4649
local session = require "resty.session".open()
4750
if (session.present) then

0 commit comments

Comments
 (0)