This commit is contained in:
parent
83ab76c7d3
commit
03e213df98
1 changed files with 4 additions and 0 deletions
|
|
@ -996,7 +996,11 @@ http {
|
|||
local redis_helper = require "redis_helper"
|
||||
|
||||
-- Get viewer token from query parameter or cookie
|
||||
-- Note: ngx.var.arg_token returns URL-encoded value, must decode it
|
||||
local token = ngx.var.arg_token
|
||||
if token then
|
||||
token = ngx.unescape_uri(token)
|
||||
end
|
||||
|
||||
-- If not in query parameter, try cookie
|
||||
if not token then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue