commit ee3c71b: [Minor] Fix parsing of the headers
Vsevolod Stakhov
vsevolod at rspamd.com
Wed Jun 8 19:28:03 UTC 2022
Author: Vsevolod Stakhov
Date: 2022-06-08 20:21:17 +0100
URL: https://github.com/rspamd/rspamd/commit/ee3c71b7e6ab3d423f0ab28925ab758501482a83 (HEAD -> master)
[Minor] Fix parsing of the headers
---
src/client/rspamc.cxx | 4 ++--
1 file 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++;
More information about the Commits
mailing list