summaryrefslogtreecommitdiffstats
path: root/fbench
diff options
context:
space:
mode:
Diffstat (limited to 'fbench')
-rw-r--r--fbench/src/fbench/client.cpp2
-rw-r--r--fbench/src/fbench/client.h3
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;