aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/fstring.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-11-12 12:30:34 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-11-12 12:30:34 +0000
commit6b49660d24022dd4637c69456f31de24264f9718 (patch)
tree06bcc2323eacd22413b4e16cd2d099436c279d4d /src/libutil/fstring.h
parent4a6835185d4e154d7b2ac026a05fbd18f1c05669 (diff)
downloadrspamd-6b49660d24022dd4637c69456f31de24264f9718.tar.gz
rspamd-6b49660d24022dd4637c69456f31de24264f9718.zip
[Minor] Use sane HTTP codes in case of proxy errors
Diffstat (limited to 'src/libutil/fstring.h')
-rw-r--r--src/libutil/fstring.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libutil/fstring.h b/src/libutil/fstring.h
index 6102215d4..730a59c1c 100644
--- a/src/libutil/fstring.h
+++ b/src/libutil/fstring.h
@@ -37,6 +37,7 @@ typedef struct f_str_s {
#define RSPAMD_FSTRING_DATA(s) ((s)->str)
#define RSPAMD_FSTRING_LEN(s) ((s)->len)
+#define RSPAMD_FSTRING_LIT(lit) rspamd_fstring_new_init((lit), sizeof(lit) - 1)
typedef struct f_str_tok {
gsize len;