aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2024-10-17 14:33:45 +0100
committerVsevolod Stakhov <vsevolod@rspamd.com>2024-10-17 14:33:45 +0100
commit973c12585f0e73f3413163758f8fe960be373cb0 (patch)
treeb5c97d8637ea0f68f64c032a7cc7f7042b69c76e /src/lua
parent28302c84ef7c9ecdb4845b445d5ebba4c1ef204f (diff)
downloadrspamd-973c12585f0e73f3413163758f8fe960be373cb0.tar.gz
rspamd-973c12585f0e73f3413163758f8fe960be373cb0.zip
[Rework] Allow `Content-Encoding` standard header for zstd compressionvstakhov-zstd-headers
Diffstat (limited to 'src/lua')
-rw-r--r--src/lua/lua_http.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lua/lua_http.c b/src/lua/lua_http.c
index 8ba612c1b..904f1cbbf 100644
--- a/src/lua/lua_http.c
+++ b/src/lua/lua_http.c
@@ -21,6 +21,7 @@
#include "unix-std.h"
#include "zlib.h"
#include "utlist.h"
+#include "libserver/protocol_internal.h"
/***
* @module rspamd_http
@@ -1107,7 +1108,7 @@ lua_http_request(lua_State *L)
if (body) {
if (gzip) {
if (rspamd_fstring_gzip(&body)) {
- rspamd_http_message_add_header(msg, "Content-Encoding", "gzip");
+ rspamd_http_message_add_header(msg, CONTENT_ENCODING_HEADER, "gzip");
}
}