commit eda0fa8: [Minor] Remove tostring

Vsevolod Stakhov vsevolod at highsecure.ru
Wed Nov 25 16:42:07 UTC 2020


Author: Vsevolod Stakhov
Date: 2020-11-25 16:39:51 +0000
URL: https://github.com/rspamd/rspamd/commit/eda0fa8f2a48cc0e0cc7d4c982dfa36b6b9aa47e (HEAD -> master)

[Minor] Remove tostring

---
 lualib/lua_selectors/extractors.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lualib/lua_selectors/extractors.lua b/lualib/lua_selectors/extractors.lua
index ce88445e8..3f6dc61ee 100644
--- a/lualib/lua_selectors/extractors.lua
+++ b/lualib/lua_selectors/extractors.lua
@@ -368,7 +368,7 @@ the second argument is optional and defines the type (string by default)]],
     ['get_value'] = function(task, args)
       local hdr = task:get_request_header(args[1])
       if hdr then
-        return tostring(hdr),'string'
+        return hdr,'string'
       end
 
       return nil


More information about the Commits mailing list