Fix condition in helpers.lua

This commit is contained in:
Théophile Diot 2023-04-25 19:58:23 +02:00
parent ab509c2705
commit da4bb8dce6
No known key found for this signature in database
GPG Key ID: E752C80DB72BB014
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ helpers.fill_ctx = function()
local data = {}
-- Common vars
data.kind = "http"
if not ngx.shared.datastore_stream then
if ngx.shared.datastore_stream then
data.kind = "stream"
end
data.remote_addr = ngx.var.remote_addr