mirror of
https://github.com/EtherDream/jsproxy
synced 2024-11-21 17:37:58 +00:00
update http-dec-req-hdr.lua
This commit is contained in:
parent
7f297ab5eb
commit
e5f1a28d1e
@ -22,13 +22,14 @@ for k, v in pairs(hdrs) do
|
||||
ngx.var._mode = v
|
||||
elseif k == 'aceh' then
|
||||
ngx.ctx._acehOld = true
|
||||
elseif k == 'level' then
|
||||
ngx.var._level = v
|
||||
ngx.ctx._level = tonumber(v)
|
||||
elseif k == 'ext' then
|
||||
extHdrs = require('cjson').decode(v)
|
||||
else
|
||||
if k == 'referer' then
|
||||
ngx.var._ref = v
|
||||
else if k == 'cookie' then
|
||||
ngx.ctx._hasCookie = true
|
||||
end
|
||||
ngx.req.set_header(k, v)
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user