diff options
author | ohad serfaty <ohad@verizonemedia.com> | 2019-11-25 09:03:18 +0200 |
---|---|---|
committer | ohad serfaty <ohad@verizonemedia.com> | 2019-11-25 09:03:18 +0200 |
commit | df843ac22914c7242377e5647ce2d1b9dddca6dd (patch) | |
tree | 6cd81cb6318aec9267c88e25c9b6cfe1d237b31a /fbench | |
parent | 9f94b126358258326f21ff9cbf823e64300a1a67 (diff) |
Preparing for PR
Diffstat (limited to 'fbench')
-rw-r--r-- | fbench/src/fbench/client.cpp | 2 | ||||
-rw-r--r-- | fbench/src/fbench/client.h | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/fbench/src/fbench/client.cpp b/fbench/src/fbench/client.cpp index 0de6f676807..abefe524b2d 100644 --- a/fbench/src/fbench/client.cpp +++ b/fbench/src/fbench/client.cpp @@ -226,7 +226,7 @@ Client::run() int cLen = _args->_usePostMode ? urlSource.nextContent() : 0; auto content = urlSource.content(); if (_args->_usePostMode && _args->_base64Decode) { - auto base64_decoded = Base64::decode(std::string(urlSource.content(), cLen)); + auto base64_decoded = Base64::decode(std::string(content, cLen)); content = base64_decoded.c_str(); cLen = base64_decoded.size(); } diff --git a/fbench/src/fbench/client.h b/fbench/src/fbench/client.h index 9cb8a96defd..70d83f71971 100644 --- a/fbench/src/fbench/client.h +++ b/fbench/src/fbench/client.h @@ -96,7 +96,8 @@ struct ClientArguments bool _keepAlive; /** - * Indicate wether to base64 decode the request before sending it + * Indicate wether POST content should be Base64 decoded before + * sending it **/ bool _base64Decode; |