diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2022-06-08 20:21:17 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2022-06-08 20:21:17 +0100 |
commit | ee3c71b7e6ab3d423f0ab28925ab758501482a83 (patch) | |
tree | b43758ead9fd20439f958a4ef00504d2d50775b0 | |
parent | aee782c192aedc7485c4b2994ff8ad59e72cce78 (diff) | |
download | rspamd-ee3c71b7e6ab3d423f0ab28925ab758501482a83.tar.gz rspamd-ee3c71b7e6ab3d423f0ab28925ab758501482a83.zip |
[Minor] Fix parsing of the headers
-rw-r--r-- | src/client/rspamc.cxx | 4 |
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++; |