]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Remove tostring
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 25 Nov 2020 16:39:51 +0000 (16:39 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 25 Nov 2020 16:39:51 +0000 (16:39 +0000)
lualib/lua_selectors/extractors.lua

index ce88445e8b946729f1ad19c1735f7c62595c2ac3..3f6dc61ee47a0f436c46deaba32cf971c4281dc1 100644 (file)
@@ -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