From da4bb8dce6713dcf207769d6ec1602ff9e8f9933 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9ophile=20Diot?= Date: Tue, 25 Apr 2023 19:58:23 +0200 Subject: [PATCH] Fix condition in helpers.lua --- src/bw/lua/bunkerweb/helpers.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bw/lua/bunkerweb/helpers.lua b/src/bw/lua/bunkerweb/helpers.lua index 8f05f01bc..9ea3901df 100644 --- a/src/bw/lua/bunkerweb/helpers.lua +++ b/src/bw/lua/bunkerweb/helpers.lua @@ -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