aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2022-06-08 20:21:17 +0100
committerVsevolod Stakhov <vsevolod@rspamd.com>2022-06-08 20:21:17 +0100
commitee3c71b7e6ab3d423f0ab28925ab758501482a83 (patch)
treeb43758ead9fd20439f958a4ef00504d2d50775b0
parentaee782c192aedc7485c4b2994ff8ad59e72cce78 (diff)
downloadrspamd-ee3c71b7e6ab3d423f0ab28925ab758501482a83.tar.gz
rspamd-ee3c71b7e6ab3d423f0ab28925ab758501482a83.zip
[Minor] Fix parsing of the headers
-rw-r--r--src/client/rspamc.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/rspamc.cxx b/src/client/rspamc.cxx
index 0c4c2663f..bdcbb0d2d 100644
--- a/src/client/rspamc.cxx
+++ b/src/client/rspamc.cxx
@@ -703,8 +703,8 @@ add_options(GQueue *opts)
}
else {
add_client_header(opts,
- hdr_view.substr(0, std::distance(delim_pos, std::begin(hdr_view))),
- hdr_view.substr(std::distance(delim_pos, std::begin(hdr_view) + 1)));
+ hdr_view.substr(0, std::distance(std::begin(hdr_view), delim_pos)),
+ hdr_view.substr(std::distance(std::begin(hdr_view), delim_pos) + 1));
}
hdr++;